Jump to content

Recommended Posts

Posted (edited)

Are you using the -o (logoff local user) or -f (force close apps) switches?

 

psshutdown -f -k seems to do the job here...

Edited by OutToLunch
Posted (edited)

I use psshutdown -f which seems to do the trick the -o logoff local user doesn't seem to work if the screen is locked.

 

Are you saying that even if the screen is locked that -o unlocks it and forces a shutdown?

 

 

Right i've downloaded the latest version and -o now logs off the user but that's it it doesn't reboot (sigh) and combining -o and -k doesn't seem to work. Is there a required order for the switches?

 

Cheers.

Edited by cookie_monster
Posted
I've noticed that you can't combine the o/k switches - I have to do 2 sweeps, 1 of -o then follow it with a sweep of -k. You could do it elegantly with a psloggedon call as well to work out if the machine is on and locked, but the time it takes to process that you might as well just nuke them all from orbit anyway :D
Posted
Beyondexec will shut down locked PCs, and also force applications to close, e.g. where someone has left Word open so it pops up the "do you want to save your changes?" box. Unless I'm mistaken, pstools will sit and wait for someone to click something in that instance.
Posted

I might of missed it Michael but i didn't see a solution in that thread that used Psshutdown.

 

 

Think i'm in bussiness now OutToLunch shame the lates version doesn't allow -0 and -k together but the two sweeps seems to be doing the trick.

 

Cheers.

Posted (edited)

Is that still the case if the station is locked by an administrator?

 

I've tried every combination i can think of and nothing works unless the station is logged off or logged on 'without' the screen locked. If i use the -k -f switches and then unlock i can see the countdown then i re lock and it never reboots i have to use the -o switch to unlock first then -f -k to force the shutdown.

Edited by cookie_monster

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...