How to logoff a user which has some unsaved applications running

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.
 
K

ksreek

No it is not possible because its a operating system embedded action that
will promt you about the LOGIN session

ksreek
JMVP
 
R

RajKohli

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top