Rebooting through remote desktop
Problem:
While remoting through Windows Remote Desktop Connection, shutdown options are not available.
Solution:
There are a few ways of enabling shutdown and restart. I have created a simple batch script to easily accomplish this. All we need is to save this code in a .bat file and the options are presented for us.
echo off cls echo SELECT OPTION ECHO 1-RESTART COMPUTER ECHO 2-SHUTDOWN COMPUTER ECHO 3-ABORT PREVIOUS SEQUENCE SET /P Choice="--> " IF /I '%Choice%'=='1' GOTO restart IF /I '%Choice%'=='2' GOTO shutdown IF /I '%Choice%'=='3' GOTO abort EXIT :restart cls echo RESTARTING THIS COMPUTER... shutdown /r echo. pause exit :shutdown cls echo SHUTTING DOWN THIS COMPUTER... shutdown /s echo. pause exit :abort cls echo ABORTING PREVIOUS SEQUENCE... shutdown /a echo. pause exit
Comments
Post a Comment