How to logoff a user which has some unsaved applications running

  • Thread starter Thread starter dkemp52
  • Start date Start date
D

dkemp52

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.
 
No it is not possible because its a operating system embedded action that
will promt you about the LOGIN session

ksreek
JMVP
 
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!
 
Back
Top