E1M1 Posted January 6, 2010 Posted January 6, 2010 (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 January 6, 2010 by E1M1 edited
rudi Posted January 7, 2010 Posted January 7, 2010 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!
E1M1 Posted January 7, 2010 Author Posted January 7, 2010 (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 January 7, 2010 by E1M1 edited
99ojo Posted January 7, 2010 Posted January 7, 2010 Hi, try: sc create MyService BinPath= "C:\MyFile.exe" type= own type= interact ;-)) Stefan
E1M1 Posted January 7, 2010 Author Posted January 7, 2010 thank you, but I can't understand why it have to be type= own type= interact? edited
99ojo Posted January 7, 2010 Posted January 7, 2010 Hi,here's the hint:http://technet.microsoft.com/ja-jp/library/cc990289(WS.10).aspxExtract: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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now