How to use vbs to resume paused automatic start service
This article mainly shows you "how to use vbs to resume the paused auto-start service". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to use vbs to resume the paused auto-start service".
StrComputer = "." Set objWMIService = GetObject ("winmgmts:" _ & "{impersonationLevel=impersonate}!\" & strComputer & "\ root\ cimv2") Set colListOfServices = objWMIService.ExecQuery _ ("Select * from Win32_Service Where State = 'Paused' and StartMode =' Auto'") For Each objService in colListOfServices objService.ResumeService () Next is all the contents of the article "how to use vbs to resume the suspended automatic start service". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!