E1M1 Posted January 6, 2010 Share 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 Link to comment Share on other sites More sharing options...
rudi Posted January 7, 2010 Share 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! Link to comment Share on other sites More sharing options...
E1M1 Posted January 7, 2010 Author Share 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 Link to comment Share on other sites More sharing options...
99ojo Posted January 7, 2010 Share Posted January 7, 2010 Hi, try: sc create MyService BinPath= "C:\MyFile.exe" type= own type= interact ;-)) Stefan Link to comment Share on other sites More sharing options...
E1M1 Posted January 7, 2010 Author Share Posted January 7, 2010 thank you, but I can't understand why it have to be type= own type= interact? edited Link to comment Share on other sites More sharing options...
99ojo Posted January 7, 2010 Share 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 Link to comment Share on other sites More sharing options...
E1M1 Posted January 7, 2010 Author Share Posted January 7, 2010 great thanks! edited Link to comment Share on other sites More sharing options...
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