Designate ALWAYS On Profile
0 Votes |
Collections (part of 1 collection)
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
2611 | |
Beta - Preliminary testing ready for more | |
Designate ALWAYS On Profile | |
BESC | |
Power Options | |
0 | |
danielheth@bigfix.me | |
<Unspecified> | |
<Unspecified> | |
10/3/2013 12:00:00 AM | |
Power Options | |
danielheth on 10/3/2013 7:24:15 PM | |
danielheth on 10/3/2013 7:24:15 PM | |
4361 Views / 94 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance
Not in Proxy Agent Context (Relevance 1131)

if exists property "in proxy agent context" then ( not in proxy agent context ) else true
Used in 2 fixlets | * Results in a true/false |

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

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