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?

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

To be able to run this batch, simply copy it and then change the paths to reflect where you put psshutdown. This is pretty much the batch I use (with modifications to it for your purpose) to do a nightly reboot of my XP boxes. It will log failed and successful shutdown commands. You need to create a text file called NightlyAll.txt that has all the names of your workstations you want to have this command sent to.

rem Version 1.5 added log entry for the computer being rebooted.
rem Version 1.4 added date and space for the NightlyReboot.txt file.
rem Version 1.3 added the log file for tracking systems that have reboot issues.
rem Version 1.2 added the Logs folder in R:\Utility folder.

rem Printed 07/25/2005

rem This batch program is used to restart computers remotely. This
rem comes in handy for getting systems to a fresh state for the users
rem for the next day, or performing a remote boot for maintenance
rem purposes

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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.

this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works.
the topics in the following article covered are,
1) dell hardware raidlevel (Perc)
2) adding HDD
3) how t…