Problem Description

Normally, after the remote connection is closed, Windows will enter the standby state and cannot perform interface rendering, so some automated applications will not be able to run. In order to still be able to run the application after the remote connection is closed, you need to use the following method to close the remote desktop.

solution

  1. Create the file close_mstsc_new.bat, copy the following code and save it
    for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
    %windir%\System32\tscon.exe %%s /dest:console)
  2. Use windows remote desktop software ( mstsc ) to log in to the virtual machine
  3. Copy the attachment to the desktop in the virtual machine
  4. Exit the remote desktop connection by double-clicking close_mstsc_new.bat (please do not close the remote by closing the window)
点赞(3)

评论列表 共有 0 评论

暂无评论

微信服务号

微信客服

淘宝店铺

support@elephdev.com

发表
评论
Go
顶部