[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决远程控制RDP(MSTSC)在结束远程时会自动锁屏 #258

Open
V55555V opened this issue Jul 24, 2024 · 0 comments
Open

解决远程控制RDP(MSTSC)在结束远程时会自动锁屏 #258

V55555V opened this issue Jul 24, 2024 · 0 comments

Comments

@V55555V
Copy link
V55555V commented Jul 24, 2024

看文档中 “云服务器部署”有提到 远程控制RDP(MSTSC)在结束远程时会自动锁屏,可以新建一个bat文件,写入以下代码。每次需要断开连接时,双击运行该bat文件,即可不锁屏断开链接。 在 macos 使用 Microsoft Remote Desktop 软件 控制 win 电脑 亲测有效。
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (%windir%\System32\tscon.exe %%s /dest:console)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant