I am looking for a way to log off all terminal server users, I cannot get these guys to log off and prevents us from getting a good backup, I would like to run a batch/script before the backup runs.
We had the same problem, but only needed to make sure a couple of programs were closed so the data files could be backed up properly. We didn't actually have to have everyone logged out.
I ended up using 'tskill' in a .bat file and using Scheduled Tasks to make sure these programs are closed for all users at a set time every night.
-----.bat file example-------
tskill /a outlook
tskill /a msaccess
-----------------------------
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.