Habeeb's profileHABEEB ALI SHAIK PhotosBlogListsMore ![]() | Help |
How to Shutdown a remote computer using Powershell ScriptI’ve written a Powershell script that shutdowns a remote computer. This Powershell script use WMI to shutdown the remote system. 1. Open notepad 2. Copy and paste below text to notepad 3. Save the file with .ps1 extension. # ---------- SCRIPT STARTS HERE-------------- #remote shutdown script $objsystem = get-wmiobject -computername $args[0] -query "select * from win32_operatingsystem" # ---------- SCRIPT ENDSS HERE-------------- TrackbacksThe trackback URL for this entry is: http://habeebshaikali.spaces.live.com/blog/cns!AC13A3C850A713DF!429.trak Weblogs that reference this entry
|
|
|