Win 服务器保持断开 RDP 后的会话

创建文本并输入以下内容:
1 | for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do ( |
将后缀改为 exe 格式。固定到任务栏即可,每次要断开连接就点击这个文件(会保持运行状态)。
进入下面的地址:
1 | %userprofile%\\AppData\\Roaming\\Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\TaskBar |
将快捷方式中指向的源文件的文件及源文件的后缀改回bat,最后记得在高级设置使用管理员权限启动。
来源:
Disconnecting From Remote Desktop While Running Automated Tests | TestComplete Documentation
- Title: Win 服务器保持断开 RDP 后的会话
- Author: Neurocoda
- Created at : 2024-01-13 19:31:00
- Updated at : 2024-01-13 19:31:00
- Link: https://neurocoda.com/p/e228fa80.html
- License: This work is licensed under CC BY-ND 4.0.
Recommend
Recommend
Comments