Jump to content

Recommended Posts

Posted (edited)

I found following code not working if script is running under user called "SYSTEM"

(I created servive)

WinGetTitle("[Active]")

I used following command to create service.

sc create MyService BinPath= "C:\MyFile.exe"

If you have any ideas how to get this work, pleae let me know. If you have any questions, just ask.

Edited by E1M1

edited

Posted

Hi.

Did you tick the checkbox "Allow Service to exchange data with desktop" (something like that) in the service's properties?

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Posted (edited)

if I add type= "interact" then I get error:

C:\Documents and Settings\user>sc create MyService BinPath= "C:\MyFile.exe" type
= "interact"

[SC] CreateService FAILED 87:

The parameter is incorrect.
Edited by E1M1

edited

Posted

Hi,

here's the hint:

http://technet.microsoft.com/ja-jp/library/cc990289(WS.10).aspx

Extract:

interact - Specifies that the service can interact with the desktop, receiving input from users. Interactive services must be run under the LocalSystem account. This type must be used in conjunction with type= own or type= shared. Using type= interact by itself will generate an "invalid parameter" error.

;-))

Stefan

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...