Link to home
Start Free TrialLog in
Avatar of quiet_tree
quiet_tree

asked on

Shutting down workstations remotely and getting a report for success and failures

We've used shutdown.exe and BeyondExec with Windows Task Scheduler to shutdown workstations remotely. It doesn't always work, and in some cases machines get turned on afterwards for those buring the midnight oil. Does anyone out there know of a utility or trick that will shut down workstations remotely and provide a report about it's successes and failures to do so?
Avatar of gratex_ssd
gratex_ssd
Flag of Slovakia image

1) script - shutdown, then wait, then ping, then serach eventlog on that machine for shutdown, and after -> make report, send mail with report
2) best language -> powershell but you can chose any scripting language that you are familliar
3) if there is a machine that is doing not shutdown, but it reboots -> then you have to troubleshoot bios settings...

hope that helps...
ASKER CERTIFIED SOLUTION
Avatar of Patrick49er
Patrick49er
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of quiet_tree
quiet_tree

ASKER

Interesting.
The beyondexec software allows users to cancel the shutdown process. This feature is important to end-users. Does psshutdown have this feature?
Yes it does.  With the -c switch, you can allow the shutdown to be aborted by the interactive user.
What does the following line in your script do:

now >> R:\Utility\Logs\Shutdown.log
The now statement captures the time and date that the command is executing; which in this case means what time the shutdown command is being sent.  If at a command prompt you type "now /?" you will get an explanation.