Hi
Does anybody know some code to restart a service using VBS please?
Thanks
Printable View
Hi
Does anybody know some code to restart a service using VBS please?
Thanks
Google is your friend.
Link.
Google just times out when i try here, not being very friendly at all
Is it me, but i cant restart there.
The command to do this is just "net start service" and "net stop service"
But I guess you want to do it prettier :D than that: WMI and VBScript - Stop and Start Services with Win32_Service
In my opinion you should stop the service AND then start it as seperate processes so you can look at the errorlevel etc should something occur.
The link lists code to stop and code to start.