Joined: 19 Aug 2007
|Posted: Sat Feb 20, 2010 6:26 pm Post subject: Restart a service
I need to create a script which is able to restart a windows service.
I have UAC enabled so there are permissions messes involved.
I tried a 100% simple
[code:1]var wsh = new ActiveXObject('WScript.Shell');
with, in the file, the code:
net stop "My Service"
net start "My Service"
but nothing happens when I click on it....
I tried launching the clicker as ADMIN but nothing changes.
Ideas :cry: ?