[GH-ISSUE #710] 可以添加Logout.bat来关闭远程控制,这样就不会锁屏 #1548

Closed
opened 2026-02-28 12:05:10 +03:00 by kerem · 4 comments
Owner

Originally created by @7Fwuyuan on GitHub (Sep 7, 2024).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/710

Originally assigned to: @VShawn on GitHub.

for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (%windir%\System32\tscon.exe %%s /dest:console)

新建txt,把上面复制进去,修改后缀为bat,右键--以管理员身份运行,这样就不会锁屏
360截图20240907153453004

Originally created by @7Fwuyuan on GitHub (Sep 7, 2024). Original GitHub issue: https://github.com/1Remote/1Remote/issues/710 Originally assigned to: @VShawn on GitHub. for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (%windir%\System32\tscon.exe %%s /dest:console) 新建txt,把上面复制进去,修改后缀为bat,右键--以管理员身份运行,这样就不会锁屏 ![360截图20240907153453004](https://github.com/user-attachments/assets/d4f2d1f2-0c06-4396-9451-19215ab3b194)
kerem 2026-02-28 12:05:10 +03:00
Author
Owner

@7Fwuyuan commented on GitHub (Sep 7, 2024):

有办法添加到软件里吗?

<!-- gh-comment-id:2335105077 --> @7Fwuyuan commented on GitHub (Sep 7, 2024): 有办法添加到软件里吗?
Author
Owner

@VShawn commented on GitHub (Sep 7, 2024):

没看错的话,这个脚本是在服务端执行的吧?1Remote 没有权限也没有办法在服务器端执行脚本

<!-- gh-comment-id:2335107578 --> @VShawn commented on GitHub (Sep 7, 2024): 没看错的话,这个脚本是在服务端执行的吧?1Remote 没有权限也没有办法在服务器端执行脚本
Author
Owner

@7Fwuyuan commented on GitHub (Sep 7, 2024):

1
现在是这样使用,不知道有没有更好办法

<!-- gh-comment-id:2335109307 --> @7Fwuyuan commented on GitHub (Sep 7, 2024): ![1](https://github.com/user-attachments/assets/daf3bf36-643c-4674-876b-1694848d11ff) 现在是这样使用,不知道有没有更好办法
Author
Owner

@VShawn commented on GitHub (Sep 11, 2024):

查了一下,https://superuser.com/a/1704295 这个可能对你有参考

<!-- gh-comment-id:2342567335 --> @VShawn commented on GitHub (Sep 11, 2024): 查了一下,https://superuser.com/a/1704295 这个可能对你有参考
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#1548
No description provided.