How to remotely put windows on sleep mode?
Hi,
I need a solution how to remotely put windows on sleep mode. Is there any way to configure 2 stations to accept remote commands using IP address.
I have seen the methods using PsExec tools but still I don't find an exact way using IP instead of computer names inside a domain. Moreover I want to skip solutions that use special software for remote assistance. I need simple way to do it inside windows frame.
Is there any way that I can send batch file to be executed automatically on the other side?
Thank you!
September 1st, 2011 7:56am
As far as I know there is no out-of-the-box way to remotely put a remote computer in standby. There is also no direct way to run a specific command on a remote machine without tools like psexec.
I would recommend using psshutdown (http://technet.microsoft.com/en-US/sysinternals/bb897541.aspx) to put a remote computer in standby.MCP/MCSA/MCTS/MCITP
Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2011 8:45am
I use wmi in a VBS to remote sleep.
strComputer = "remote-pc"
strCommand = "d:\tools\pc-sleep.cmd"
' pc-sleep.cmd :
' rem powercfg /hibernate off ' requires runas admin
' rundll32.exe powrprof.dll,SetSuspendState
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objProcess = objWMIService.Get("Win32_Process")
errReturn = objProcess.Create(strCommand, null, null, intProcessID)
On Window 7 you need permission to execute the script remotely via WMI. The procedure is described here
http://blogs.technet.com/b/jhoward/archive/2008/03/28/part-1-hyper-v-remote-management-you-do-not-have-the-requested-permission-to-complete-this-task-contact-the-administrator-of-the-authorization-policy-for-the-computer-computername.aspx
April 27th, 2012 4:21pm