Windows 8 and 8.1 Forums

How can I send sleep/restart commands remotely?

  1. #11

    San Jose - California
    Posts : 2,846
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64

    You might need to add an option -t 30 for the countdown.

    I also removed the EVERYONE group for security issues as it's not needed because I only want an Administrator to have the rights to send any shutdown commands.
    Since I am the only one to use the PC's so I added Everyone to make it simple. Otherwise I would have to put the User/Password on the command line for it to work.

    FYI, On the shutdown.exe, you can use hibernate instead of sleep. The differences between the 2's is sleep will leave the PC state in memory and will require a little juice to keep it current, hibernate will write the current state to the HD (Hiberfil.sys) and requires no power.

    Here's an example how I created 2 batch files to turn on and off the PC:

    1. To turn on: E:\Portable\wakemeonlan\WakeMeOnLan.exe /wakeup Coyote-pc
    2. To turn Off: shutdown.exe /s /m \\Coyote-pc /f /t 00

    NOTE: On step 2, you can use /h to hibernate instead of /s to shutdown.

    Hope this helps !!!
    Last edited by topgundcp; 05 Nov 2014 at 14:53.

      My System SpecsSystem Spec

  2. #12

    Sorry for the delayed reply. Thanks very much for your help. I didn't see your reply earlier, but I managed to get the pc by using this command:-

    psshutdown \\media-computer -d -m "COMPUTER GOING TO SLEEP IN 20 SECONDS"
      My System SpecsSystem Spec

Page 2 of 2 FirstFirst 12
How can I send sleep/restart commands remotely?

Similar Threads
Thread Forum
How do I send shutdown and restart actions over home net?
OK, so I know it sounds simple, but this is the fun part... I'm the administrator of my home network, with 2 desktops on LAN, along with 2 wi-fi desktops and a laptop. ipconfig /all shows the laptop and one of the LAN desktops, but not the other residing on the network. The missing desktop...
Network & Sharing
Shut down, restart and sleep don't work
Hello guys, I bought a new Dell XPS 15 l521x and replaced the HDD with an SSD. When I did the upgrade and installed windows 8 everything was fine, but since the laptop has a 32gb mSATA card I decided to try installing windows on it to utilize the space. After changing the SATA settings in the BIOS...
General Support
Pc won't shutdown or sleep, only restart
Hi there, I was running Windows 7 home premium on my pc on a 2TB hdd, and it was running fine, I had a 500GB as a separate hdd aswell, attached at the time. So I installed windows 8 on the 500GB hdd, activated it, tried to restart, I restarts, but now in both windows 8 and 7, I am having...
General Support
Sleep Mode Causes Restart
I'm having the problem with my PC restarting after trying to come out of sleep mode. I've followed the dump instructions and have attached my zip file. I think it's a driver issue but no idea which one. Thanks for you help.
BSOD Crashes and Debugging
Can't restart, shutdown, or sleep
Hi there I have a Samsung ATIV Smart PC and have been running into some trouble. Whenever the tablet goes into sleep mode, I can't get it to wake up like it normally would. I can't seem to shut it down or restart the machine either. Sorry I'm a bit of a noob when it comes to this stuff. I...
BSOD Crashes and Debugging
Problems with shutdown and restart commands afterwin8 upgrade
Got an issue where my PC won't restart or shutdown properly after windows 8 upgrade. If I try and restart or shutdown, windows shuts down the programs as normal, I loose signal from my graphics card, but never actually power cycles. I have to hold the power button in for 6 seconds to get it...
Performance & Maintenance
BSOD whenever Ii try to sleep, and I try to restart again
pls wheneva i try to sleep, and i try to restart again, it brings this blue screen and says error and i will have to shutdown and on before my laptop can work properly just like this same problem you guys are discusiing can somebody help this poor boy and describe this compatibility step to me....
BSOD Crashes and Debugging

Eight Forums Android App Eight Forums IOS App Follow us on Facebook