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.