Designate ALWAYS On Profile
Log In or Register to download the BES file, and more.

0 Votes

Collections (part of 1 collection)

Windows Configuration

Description

This Task will make each of the targeted computers a "ALWAYS On Profile" computer.

Configure a computer's power profile to never enter the system Standby, Hibernate, or hard-disk power management modes actions that would turn the computer off.


Property Details

ID2611
StatusBeta - Preliminary testing ready for more
TitleDesignate ALWAYS On Profile
DomainBESC
CategoryPower Options
Download Size0
Sourcedanielheth@bigfix.me
Source ID<Unspecified>
Source Severity<Unspecified>
Source Release Date10/3/2013 12:00:00 AM
KeywordsPower Options
Added by on 10/3/2013 7:24:15 PM
Last Modified by on 10/3/2013 7:24:15 PM
Counters 4361 Views / 94 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Not in Proxy Agent Context (Relevance 1131)
Used in 1061 fixlets and 12 analyses   * Results in a true/false
Show indented relevance
if exists property "in proxy agent context" then ( not in proxy agent context ) else true
Used in 2 fixlets   * Results in a true/false
Show indented relevance
(if( name of operating system starts with "Win" ) then platform id of operating system != 3 else true) AND (name of operating system starts with "Win" OR name of operating system = "Mac OS X")
Used in 2 fixlets   * Results in a true/false
Show indented relevance
version of client >= "7.2" AND ((if (name of it= "Mac OS X") then (release of it >= "10.4" as version AND release of it < "10.9" as version) else true) of operating system)

Actions

Action 1

Action Link Click here to apply an ALWAYS On Power Option.
Script Type BigFix Action Script
if {name of operating system = "Mac OS X"} 
    wait pmset disksleep 0
    wait pmset sleep 0
else
    if {major version of operating system = 6}
        waithidden cmd.exe /C powercfg.exe -list > __list
    
        if{exists file "__list" whose(exists line whose(it contains "(ALWAYS On Profile)" ) of it)}
            waithidden cmd.exe /C powercfg.exe -setactive {(if(exists lines whose(it contains "(ALWAYS On Profile)") of it ) then(preceding text of first "(" of following text of first ":" of concatenations of( lines whose(it contains "(ALWAYS On Profile)") of it) of file "__list") else("381b4222-f694-41f0-9685-ff5bb260df2e") ) of file "__list"}
            delete __list
        else
            waithidden cmd.exe /C powercfg.exe -duplicatescheme 381b4222-f694-41f0-9685-ff5bb260df2e > __guid
            waithidden cmd.exe /C powercfg.exe -changename {preceding text of last "(" of (following text of first ": " of (line 1 of file "__guid"))} "Last Man Standing"
            waithidden cmd.exe /C powercfg.exe -setactive {preceding text of last "(" of (following text of first ": " of (line 1 of file "__guid"))}
            delete __guid         
        endif
        
        waithidden cmd.exe /C powercfg.exe -change -disk-timeout-ac 0
        waithidden cmd.exe /C powercfg.exe -change -standby-timeout-ac 0
        waithidden cmd.exe /C powercfg.exe -hibernate off
    else
        if{name of operating system contains "Win"}
            waithidden "{pathname of system folder & "\powercfg.exe"}" /create "ALWAYS On Profile"
            waithidden "{pathname of system folder & "\powercfg.exe"}" /setactive "ALWAYS On Profile"
            waithidden "{pathname of system folder & "\powercfg.exe"}" /change "ALWAYS On Profile" /disk-timeout-ac 0
            waithidden "{pathname of system folder & "\powercfg.exe"}" /change "ALWAYS On Profile" /standby-timeout-ac 0
            waithidden "{pathname of system folder & "\powercfg.exe"}" /hibernate off
        endif
    endif
endif
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!