Link to home
Start Free TrialLog in
Avatar of palserv
palserv

asked on

Windows Batch File To Reset Remote Desktop Connection

Hello,

i have this command to reset desktop connection , i want this script to be run if i got msg max user exeded , the problem is the session got different ID each time .

so i need batch .BAT , to run this script and only put the ID # to reset

can anybody help??
net use /user:user\\server\share
 
query session /server:server
 
reset session # /server:server
 
pause

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial