Solved How can I send sleep/restart commands remotely?

noobpc

Member
Member
Messages
28
Hi guys, I have a small Home network setup and I want a simple way of sending a command from my pc upstairs to a media pc downstairs which can shutdown/sleep/restart it remotely.

FYI, both pc's have windows 8 pro 64bit and the media pc is is mostly in sleep-mode.

Can you recommend any app or command methods?
 

My Computer

System One

  • OS
    win 8 pro

My Computer

System One

  • OS
    win8.1.1 enterprise
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Hinze57
    CPU
    AMD FX 6100 6core 3.30gHz
    Motherboard
    gigibyte ga-78lmy-s2p
    Memory
    4gig ddr3
    Graphics Card(s)
    Radon hd5000 Series
    Sound Card
    onboard realtek hd
    Monitor(s) Displays
    19" viewsonic/ 22"Samsung
    Screen Resolution
    1680x1050
    Hard Drives
    128gig ssd Kingston
    80gig WD 10000 rpm spinner
    Case
    micro
    Keyboard
    microsoft curve 200
    Mouse
    Logitech wireless M215
    Internet Speed
    high speed 20
    Browser
    ie 11
    Antivirus
    windows defender
    Other Info
    updated enterprise apr 2/14
Thanks caperjack. Unfortunately I've already seen that app and I believe it only does WOL and not any of the other commands such as sleep or restart :(
 

My Computer

System One

  • OS
    win 8 pro
From the PC downstairs:
  1. Open registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
    Add a DWORD: LocalAccountTokenFilterPolicy and set the value to 1
  2. Win+R->secpol.msc:
    Security Settings->Local Policies->User Rights Assignment-> Force shutdown from a remote system and Add Everyone to the list
  3. Open Device Manager and right click on the Network Adapter->Properties->Power Management and put a check mark on: Allow this device to wake up the computer.
  4. In the BIOS, enable Wake On Lan

From the PC upstairs: Open Admin command prompt

  1. shutdown.exe /s /m \\COMPUTERNAME /t 00 =====>where COMPUTERNAME is the name of the PC downstairs or the IP can also be used. For example: shutdown /s /m \\192.168.1.2 /t 00
  2. To boot up the PC. Download the program from the link above given by Caperjack
    Type: WakeMeOnLan /wakeup COMPUTERNAME

NOTE: you can create batch files and include these command and run them as needed.

Use: shutdown /? to get other options

Hope this helps !!!
 
Last edited:

My Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox

My Computer

System One

  • OS
    win8.1.1 enterprise
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Hinze57
    CPU
    AMD FX 6100 6core 3.30gHz
    Motherboard
    gigibyte ga-78lmy-s2p
    Memory
    4gig ddr3
    Graphics Card(s)
    Radon hd5000 Series
    Sound Card
    onboard realtek hd
    Monitor(s) Displays
    19" viewsonic/ 22"Samsung
    Screen Resolution
    1680x1050
    Hard Drives
    128gig ssd Kingston
    80gig WD 10000 rpm spinner
    Case
    micro
    Keyboard
    microsoft curve 200
    Mouse
    Logitech wireless M215
    Internet Speed
    high speed 20
    Browser
    ie 11
    Antivirus
    windows defender
    Other Info
    updated enterprise apr 2/14
Topgundcp - I'll give it a try and let you know. By the way, you've given me a command to shutdown, but what would the commands be for SLEEP and RESTART?

Caperjack - I already run tightvnc which does better than teamviewer, but all I want to do is to double-click on an icon and something like a batch file runs to the pc downstairs to sleep.
 

My Computer

System One

  • OS
    win 8 pro
On the bottom of the previous post, Use: shutdown /? for other options. BTW, /r will restart.

In addition, you can also download: PsShutdown from MS SysInternals that has more options.
 
Last edited:

My Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
Topgundcp - I'll give it a try and let you know. By the way, you've given me a command to shutdown, but what would the commands be for SLEEP and RESTART?

Caperjack - I already run tightvnc which does better than teamviewer, but all I want to do is to double-click on an icon and something like a batch file runs to the pc downstairs to sleep.
Ok,got you now ,
 

My Computer

System One

  • OS
    win8.1.1 enterprise
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Hinze57
    CPU
    AMD FX 6100 6core 3.30gHz
    Motherboard
    gigibyte ga-78lmy-s2p
    Memory
    4gig ddr3
    Graphics Card(s)
    Radon hd5000 Series
    Sound Card
    onboard realtek hd
    Monitor(s) Displays
    19" viewsonic/ 22"Samsung
    Screen Resolution
    1680x1050
    Hard Drives
    128gig ssd Kingston
    80gig WD 10000 rpm spinner
    Case
    micro
    Keyboard
    microsoft curve 200
    Mouse
    Logitech wireless M215
    Internet Speed
    high speed 20
    Browser
    ie 11
    Antivirus
    windows defender
    Other Info
    updated enterprise apr 2/14
Hi again. Thank you very much for the helpful post topgundcp. I have successfully managed to shutdown the computer. 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.

However, I have a quick question:-
1. I don't want to just shut it down, but actually put it to sleep. I can't find this option when I type shutdown /? as it seems it only allows either shutdown or restart....Is it possible to do this?

EDIT: Ignore the above question as I have managed to resolve the above issue by using the psshutdown command:- psshutdown \\computer-name -d -m "COMPUTER GOING TO SLEEP IN 30 SECONDS". But the message is not being displayed in windows 8...Anyway of fixing this?
 
Last edited:

My Computer

System One

  • OS
    win 8 pro
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:

My Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
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 Computer

System One

  • OS
    win 8 pro
Back
Top