Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::::::::::::::::::::::::::::::::::::::::::::
- :: Author: Deathjam ::
- :: Purpose: RDP Session resets ::
- :: Date: 16/09/2013 ::
- :: Version: 1.0 ::
- ::::::::::::::::::::::::::::::::::::::::::::
- @echo off
- Title RDP SESSION DISCONNECT
- Set /p SERVER=[Insert The Machine Name]
- :querying
- cmd /c query session /server:%SERVER%
- set /p ID=[insert the session id you want to disconnect]
- cmd /c reset session %ID% /server:%SERVER%
- set /p CHOICE=[Do you want to reset another? Y/N]
- If %CHOICE% == Y Goto querying
- If %CHOICE% == y Goto querying
- If %CHOICE% == n Goto EOF
- If %CHOICE% == N Goto EOF
- :EOF
- exit
Advertisement
Add Comment
Please, Sign In to add comment