Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

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?

0

Comments

2 comments
Date Votes
  • 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

     

    0
  • Commandline
    %windir%\system32\powercfg.exe -Change Standby-Timeout-AC 0

    Hibernate is already disabled so I'm not looking at that. 

    0