Thank you. I figured it out how to stop it. I placed an "On Error Resume Next' before it. I don't know if it was the correct way to eliminate the error but I now can stop and disable the service along with updating my spreadsheet.
Line 13
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
I have verified that the code is correct from several different sources. I am not sure that it has anything to do with this line at all. The script successfully runs...
I am trying to use the following script to stop and disable a services that is not needed. (not the service in this script) My question is why to I get error:0x80041021, Code: 80041021 for line 13 when it runs. It will work through the list and stop the service but then kicks out the error. Also...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.