This script worked last week, and now it doesn't. I don't know what
has changed, but I know the script hasn't changed.
The portion that's failing can be run alone:
-=-=-=-
Set oService = GetObject("WinMgmts:{impersonationLevel=impersonate}!\
\SERVERNAME\root\cimv2:Win32_Service.Name='SERVICENAME")
oService.stopService
-=-=-=-
I'm running it as privileged admin, the same way I ran it last week
when it worked. Now it gives me a dialog box titled "Windows Script
Host" with this data:
Script: [path to script]
Line: 3
Char: 1
Error: A security package specific error occured.
Code: 80070721
Source: (null)