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)
Likes(3)

Comment list count 0 Comments

No Comments