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
- 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)
- Use windows remote desktop software ( mstsc ) to log in to the virtual machine
- Copy the attachment to the desktop in the virtual machine
- Exit the remote desktop connection by double-clicking
close_mstsc_new.bat
(please do not close the remote by closing the window)
Post comment 取消回复