Skip to content

Instantly share code, notes, and snippets.

@kasajian
Created September 16, 2015 17:27
Show Gist options
  • Save kasajian/b655f159f810afe680ad to your computer and use it in GitHub Desktop.
Save kasajian/b655f159f810afe680ad to your computer and use it in GitHub Desktop.
unlock and disconnect from rdp session
tscon ((quser | ? {$_ -match 'intern' }) -split ' +')[1] /dest:console
(Source: http://superuser.com/questions/80334/remote-desktop-connection-without-locking-the-remote-computer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment