Simple create a batch file and save it on remote host: put this command in the batch file if the remote host is Windows 10, change the session ID 1 to 0 if it's a legacy Windows:
Originally Posted by alesyt0h
Because the tscon.exe needs to be run elevated (as administrator), create an elevated shortcut for your batch file and place the shortcut on desktop of the host. Now when you want to disconnect the session and unlock the remote host restoring the local user's desktop, simply double click / tap the shortcut.
tscon.exe 1 /dest:console
Check this tutorial at our sister site the Seven Forums for creating an elevated shortcut: Elevated Program Shortcut - Create for Standard User - Windows 7 Help Forums