Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wmic os reboot NOT FUNCTIONING

214 views
Skip to first unread message

tony roth

unread,
May 13, 2003, 11:34:24 AM5/13/03
to
running the following

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


[MS] Scott McNairy

unread,
May 13, 2003, 2:31:40 PM5/13/03
to
Try this line instead. I don't know why WMI returned this error however.

' 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...

[MS] Scott McNairy

unread,
May 13, 2003, 4:52:35 PM5/13/03
to
I understand the error now I think.

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...

tony roth

unread,
May 14, 2003, 12:54:53 AM5/14/03
to
got it thanks

"[MS] Scott McNairy" <sco...@online.microsoft.com> wrote in message
news:3ec15b15$1...@news.microsoft.com...
0 new messages