Wednesday, June 21, 2017

How to log off the Virtual Machine without any services interruption on the same?

I was working with the VM and always my pulse secure connection was disconnected hence my application was down, So I got the batch file which is logging off the system properly without disconnecting the VPN connection. 

The batch job text is written below:

========================================

@ECHO OFF
C:\Windows\System32\tscon.exe rdp-tcp#0 /dest:console 
C:\Windows\System32\tscon.exe rdp-tcp#1 /dest:console 
C:\Windows\System32\tscon.exe rdp-tcp#2 /dest:console 
C:\Windows\System32\tscon.exe rdp-tcp#3 /dest:console 
C:\Windows\System32\tscon.exe rdp-tcp#4 /dest:console

========================================

And Save the above text as any bat file like "SoftLogOff.bat" and save in the VM system.

While logging off you should double-click on this bat file and then the system will be logged off.

Thank you.


No comments:

Post a Comment