Hi,

Running a short vbs script that uses the win32shutdown method(?) of
the winmgmts win32_operatingsystem object produces the following error:

Error: Privilege not held.
Code: 80041062
Source SWbemObject

Can the privilege be enabled?

The operating system is Win2K, SP 4 with the roll up fixes.
--
Bill

Re: WMI & Shutdown by JHP

JHP
Mon May 08 10:46:55 CDT 2006

Most likely you need to set the impersonation level... see:
http://www.microsoft.com/technet/scriptcenter/guide/sas_cpm_evqo.mspx?mfr=true

Also,

Microsoft had this to say...
http://support.microsoft.com/?kbid=891864&SD=tech


"William C. Smith" <wcsmithx*xieee.org> wrote in message
news:Xns97BBA058CB0A5wcsmithieeeorg@216.196.97.136...
> Hi,
>
> Running a short vbs script that uses the win32shutdown method(?) of
> the winmgmts win32_operatingsystem object produces the following error:
>
> Error: Privilege not held.
> Code: 80041062
> Source SWbemObject
>
> Can the privilege be enabled?
>
> The operating system is Win2K, SP 4 with the roll up fixes.
> --
> Bill