wmic os call reboot
I get the following and I do have shutdown priv's
Executing (Win32_OperatingSystem)->Reboot()
ERROR:
Code = 0x8004102f
Description = Invalid method Parameter(s)
Facility = WMI
Any Ideas,
thanks
tr
' this will force the shutdown of the OS.
Wmic os where primary="1" call win32Shutdown 6
--
[MS] Scott McNairy
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"tony roth" <tr...@or.blm.gov> wrote in message
news:#bCKoUWG...@TK2MSFTNGP10.phx.gbl...
wmic os where primary="1" call reboot
should work for you too.
The error is returned when the method requires an instance object path
rather than the class object path which is what results if you don't have a
where conditional in the command line.
--
[MS] Scott McNairy
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"[MS] Scott McNairy" <sco...@online.microsoft.com> wrote in message
news:3ec13a0f$1...@news.microsoft.com...