Get Windows Power Options (Sleep Mode) through Script

I am facing issue where in many of the servers go into sleep mode after 3 hours of idle state. I am not sure on how many servers this Sleep Mode setting is applied and wants to find it out on all the list of servers.

Can someone please help me with a script which can extract the "Sleep Mode" settings in Windows Power Options in Tabular form or formatted Excel format.

Requirement: Script to take input (computer names) from a text/CSV file and output to Excel/CSV file.

Thank you very much in advance !!

Regards

Amit Rao

September 3rd, 2015 11:54am

Hi,

Prewritten scripts can be found in the repository here:

https://gallery.technet.microsoft.com/scriptcenter

If you don't find what you're looking for and you can't write your own, you can request a script here:

https://gallery.technet.microsoft.com/scriptcenter/site/requests

Note that we do not write scripts on demand here. If you have a specific question, post your code and your errors and we can go from there.

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 11:57am

Please read the following:

September 3rd, 2015 12:56pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics