Most Recent Posts
ICD-10 codes
by ffac - 10/06/2026 12:54 PM
Finding my API
by It's me - 10/04/2026 6:58 PM
SQL server
by denvertech - 09/27/2026 12:51 PM
Laptops v. Desktops, what do users prefer?
by denvertech - 09/27/2026 12:46 PM
Electronic Signature Pad for Consent Forms
by denvertech - 09/27/2026 11:12 AM
Member Spotlight
JBS
JBS
Reisterstown
Posts: 3,002
Joined: September 2009
Newest Members
peter smith, Christophe1776, Jun Valley Occ H, Michael Lara, DrDr
4,614 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2012
Posts: 395
Member
OP Offline
Member
Joined: Aug 2012
Posts: 395
Hi,

Does anyone know of an elegant solution to reboot the host computer when using RDC? The closest I've come is Alt-F4, but it's not really tidy.


Gianni
Joined: Apr 2011
Posts: 2,316
Likes: 2
G
Member
Offline
G
Member
Joined: Apr 2011
Posts: 2,316
Likes: 2
Make a Batchfile on the desktop.

PAUSE
shutdown -r -t 01

Reboots the computer in 1 seconds. You can add -f to force close any open programs.

shutdown -r -t 01 -f

The PAUSE is to make sure you don't click it on accident.

Joined: Aug 2012
Posts: 395
Member
OP Offline
Member
Joined: Aug 2012
Posts: 395
Clever - especially the PAUSE statement. Thanks!


Gianni
Joined: Apr 2011
Posts: 2,316
Likes: 2
G
Member
Offline
G
Member
Joined: Apr 2011
Posts: 2,316
Likes: 2
Wait! I made a mistake, change it to -r (restart) instead of -s. -s is to shutdown.


Moderated by  ChrisFNP, DocGene, JBS, Wendell365 

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Who's Online Now
0 members (), 178 guests, and 84 robots.
Key: Admin, Global Mod, Mod
Top Posters(30 Days)
ffac 2
Top Posters
Bert 12,908
JBS 3,002
Wendell365 2,370
Sandeep 2,316
ryanjo 2,084
Leslie 2,002
Wayne 1,889
This board is dedicated to the memory of Michael "Indy" Astleford. February 6, 1961 -- April 16, 2019




SiteLock
Powered by UBB.threads™ PHP Forum Software 7.7.5