![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | how to shut down computer using WMI?? (get-wmiobject win32_operatingsystem -computername .).win32shutdown(8) it return me a message "Privilege not held" could you guy tell me how do i get that privilege |
My System Specs![]() |
| | #2 (permalink) | ||||||||||||
| Guest | Re: how to shut down computer using WMI?? You have to have the shutdown right on the machine. Can you shutdown the machine locally? Do you use a different account for WMI? "Ryan" <Ryan@xxxxxx> wrote in message news:BA85956A-7010-4A48-A5A3-C08254078856@xxxxxx
| ||||||||||||
My System Specs![]() | |||||||||||||
| | #3 (permalink) | ||||||||||||
| Guest | Re: how to shut down computer using WMI?? "Ryan" <Ryan@xxxxxx> wrote in message news:BA85956A-7010-4A48-A5A3-C08254078856@xxxxxx
Try this...... $win32OS = get-wmiobject win32_operatingsystem -computername . $win32OS.psbase.Scope.Options.EnablePrivileges = $true $win32OS.win32shutdown(8) -- Jon | ||||||||||||
My System Specs![]() | |||||||||||||
| | #4 (permalink) | ||||||||||||||||||||||||
| Guest | Re: how to shut down computer using WMI?? yes, i only got one account on my machine "Brandon Shell" <tshell.mask@xxxxxx> wrote in message news:ut76Tlx7HHA.5160@xxxxxx
| ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
| | #5 (permalink) | ||||||||||||||||||||||||
| Guest | Re: how to shut down computer using WMI?? thank you "Jon" <Email_Address@xxxxxx> wrote in message news:eeA1Zwx7HHA.5980@xxxxxx
| ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Computer Won't shut down | ryancr500 | Vista performance & maintenance | 0 | 06-01-2008 01:48 PM |
| Computer Shut Down | guy | Vista installation & setup | 0 | 01-25-2008 02:37 PM |
| shut down computer | Lilium | Vista General | 4 | 01-02-2008 09:05 AM |
| Computer will not shut down | Carl2435 | Vista General | 2 | 11-19-2007 01:23 PM |
| Computer shut down | Ken Sympson | Vista performance & maintenance | 2 | 11-12-2007 06:33 PM |