RE: How to logoff a user which has some unsaved applications running by RajKohli
RajKohli
Sun Apr 06 19:46:00 PDT 2008
Try using TASKKILL command in your script. E.g.:
TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*"
TASKKILL /S system /F /IM notepad.exe /T
Just a guess.
Hope this help, let us know!
"dkemp52@gmail.com" wrote:
> I would like to run a script that would logoff the user in a silent
> fashion, which means if there are any open and unsaved applications,
> it would not prompt the user to save them, but simply logs off and
> with any unsaved data being lost.
>
> Is there any command to accomplish this. Thanks.
>