0

How to reboot windows (automatically) when RDP password equal some value?

For example :

Password for RDP == "hello_world". When user enter with this password Windows will work as usual. But if password == 'bye_world' Windows will reboot.

laxonline
  • 2,657
  • 1
  • 20
  • 37
GIone hok
  • 69
  • 9

1 Answers1

0

You could use a batch file as @Da_smokes suggested

set /p password=Enter rdp password:
if "%password%"=="hello_world" mstsc /whatever you want to do
if "%password%"=="bye_world" shutdown /s /t 0 /f
Bali C
  • 30,582
  • 35
  • 123
  • 152