Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 RDP 密码等于某个值时,如何(自动)重新启动 Windows?
例如 :
的密码RDP == "hello_world"。当用户使用此密码输入时,Windows 将照常工作。但如果password == 'bye_world'Windows 将重新启动。
RDP == "hello_world"
password == 'bye_world'
您可以按照@Da_smokes 的建议使用批处理文件
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