FN-GM Posted October 8, 2008 Posted October 8, 2008 Hi Does anybody know some code to restart a service using VBS please? Thanks
FN-GM Posted October 8, 2008 Author Posted October 8, 2008 Google just times out when i try here, not being very friendly at all Is it me, but i cant restart there.
User3204 Posted October 8, 2008 Posted October 8, 2008 The command to do this is just "net start service" and "net stop service" But I guess you want to do it prettier than that: WMI and VBScript - Stop and Start Services with Win32_Service
kmount Posted October 8, 2008 Posted October 8, 2008 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.
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