I am goofing around with the psshutdown.exe command and I think it's working pretty well. However, being the nerd that I am, I want to explore more of the options psshutdown provides. I am having a heck of a time trying to figure out the -e switch.
How does that work? How do you put in the codes? What codes do you put in? What would show up on the remote computer if I put in the -e switch for a Planned Minor Other?
I see when I do a psshutdown /? I get the following:
Reasons defined on this computer (U = unplanned, P = planned):
Type Major Minor Title
U 0 0 Other (Unplanned)
P 0 0 Other (Planned)
U 1 1 Hardware: Maintenance (Unplanned)
P 1 1 Hardware: Maintenance (Planned)
U 1 2 Hardware: Installation (Unplanned)
P 1 2 Hardware: Installation (Planned)
U 2 3 Operating System: Upgrade (Unplanned)
P 2 3 Operating System: Upgrade (Planned)
U 2 4 Operating System: Reconfiguration (Unplanned)
P 2 4 Operating System: Reconfiguration (Planned)
U 4 1 Application: Maintenance (Unplanned)
P 4 1 Application: Maintenance (Planned)
U 4 5 Application: Unresponsive
U 4 6 Application: Unstable
This is what I got for a command so far that does work:
C:\PSTOOLS>pssh utdown -r -t 15 -m "There is a scheduled reboot for this machine. Please standby..." -n 10 @Computers.txt
How does that work? How do you put in the codes? What codes do you put in? What would show up on the remote computer if I put in the -e switch for a Planned Minor Other?
I see when I do a psshutdown /? I get the following:
Reasons defined on this computer (U = unplanned, P = planned):
Type Major Minor Title
U 0 0 Other (Unplanned)
P 0 0 Other (Planned)
U 1 1 Hardware: Maintenance (Unplanned)
P 1 1 Hardware: Maintenance (Planned)
U 1 2 Hardware: Installation (Unplanned)
P 1 2 Hardware: Installation (Planned)
U 2 3 Operating System: Upgrade (Unplanned)
P 2 3 Operating System: Upgrade (Planned)
U 2 4 Operating System: Reconfiguration (Unplanned)
P 2 4 Operating System: Reconfiguration (Planned)
U 4 1 Application: Maintenance (Unplanned)
P 4 1 Application: Maintenance (Planned)
U 4 5 Application: Unresponsive
U 4 6 Application: Unstable
This is what I got for a command so far that does work:
C:\PSTOOLS>pssh utdown -r -t 15 -m "There is a scheduled reboot for this machine. Please standby..." -n 10 @Computers.txt
Comment