Hi Mike,
Create a batch file containing the following
logoff rdp-tcp < yes.txt
or
logoff ica-tcp < yes.txt
Obviously the first one will log off RDP sessions and the
second will log off ICA sessions. I don't know which you
are using but you could also put both lines in your batch
file to cover both eventualities.
You would also need to create a file called yes.txt in
the same directory which just contains the letter y. I'm
sure you can pipe a 'Yes' through to the logoff command
without doing this but can't remember how at the moment.
Then just schedule your batch file.
Hope it helps
Daniel.
>-----Original Message-----
>Hello,
>
>I have users on my Win2K Terminal Server who don't
always
>log off at night. However, I want to make sure that
there
>are no files locked for backups. I was wondering if
there
>is an easy way to write a batch file that would log off
>all users at a specific time.
>
>Any ideas?
>
>Thank you,
>Mike
>.
>
|