Find PC's with sleep on AC still enabled?
So I have a deployment that disables PC's from going to sleep when on AC power but I don't want to keep running on on every PC. Is there a way to create a collection of PC's that have anything other than a zero in the sleep timeout when on AC? I've looked at the registry and the power settings but I can't seem to locate what to check here. I thought about using powercfg if it can return that info but could not figure out a way. Barring this I'd even be ok with creating a collection of PC's I have run the deployment on and excluding those from future runs if that is possible?
Comments
How are you disabling sleep?
I have a process that runs "powercfg.exe /hibernate off"
Then my Files scanner checks for the existence of hiberfil.sys and I built a collection based on that
Commandline
%windir%\system32\powercfg.exe -Change Standby-Timeout-AC 0
Hibernate is already disabled so I'm not looking at that.