General discussion

Locked

Terminal Server Command line

By dthirlway ·
I wont to be able to writer a batch file that resets all Terminal Server Sessions on a server so I can do a backup (at the current time there are some people whos sessions are still open and have files open I need to backup).

I need to know if itis possible to do this with a command line.

Thanks...

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Terminal Server Command line

by LordInfidel In reply to Terminal Server Command l ...

Actaully, it is even easier then that.

In terminal services config mgr, you can specify the time out and disconnect options.

Collapse -

Terminal Server Command line

by dthirlway In reply to Terminal Server Command l ...

Poster rated this answer

Collapse -

Terminal Server Command line

by shmaltz In reply to Terminal Server Command l ...

Create a text file in your c: drive that has just one line with the word yes followed by enter (a blank line) save it with then name yes.
In the batch file enter the following command:
reset session rdp-tcp < c:\yes
this should reset all the sessions.

Collapse -

Terminal Server Command line

by shmaltz In reply to Terminal Server Command l ...

The following is email that i exchanged with the one who posted this question (I'm posting it so anyone that is researching this gets the answer as well):
Hi, you answered a question I possed at techrepublic, and it worked fine, thanks very much, the only thing is
that I also need to reset disconnected sessions as well, any idea.

Thanks for your help.

Terminal Server Command line
I wont to be able to writer a batch file that resets all Terminal Server
Sessions on a server so I can doa backup (at the current time there are
some people whos sessions are still open and have files open I need to
backup).

I need to know if it is possible to do this with a command line.

Thanks...
This was my reply:

It is not possible to to do that for disconnected sessions. It will not work. You should set up a policy that will not allow disconnect from sessions, or to reset sessions after x amount of time.

Collapse -

Terminal Server Command line

by dthirlway In reply to Terminal Server Command l ...

Poster rated this answer

Collapse -

Terminal Server Command line

by dthirlway In reply to Terminal Server Command l ...

This question was closed by the author

Back to Windows Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums