Power managment?

(imported topic written by johnism91)

So we are going to implement power management and were wondering is there a way to deploy the power settings in a way that they will not apply if exe (like word) are running?

So I can deploy the Recommend powersetting with no issues… But the machine will go into stand by mode if word or excel are running. So is there away to modify that fixlet so that the power settings will not apply if they are running?

Thanks for the incite and input,

John

(imported comment written by SystemAdmin)

Hey John,

Probably the easiest thing to do would be to add a bit if relevance to the fixlet that checks if theses applications are running, which can be accomplished easily with our “running application” inspector:

not exists running applications whose(name of it as lowercase ="excel.exe" or name of it as lowercase = "word.exe")

-Zak Kus

(imported comment written by johnism91)

but would that only take effect when the fixlet is applied and not at all times?

(imported comment written by SystemAdmin)

What you probably want is to run the action as a “policy” action. You can do this by selecting the “policy” preset in the consoles Take Action Dialog.

Policy actions are continuously open actions, and will reapply whenever they become relevant. So in this case what you will see is the endpoints will always be forced to have teh power profile you’ve specified, unless they are running word or excel.

You could also create a second policy action which is deploys an “always on” type policy, and is applicable when it detects that word is running (basically the expression above, with the “not” removed). That way the machines would never go into standby while they are using those applications, but still return to a green power profile when they shut them down.

-Zak Kus

(imported comment written by johnism91)

Ok can you elaborate more on how to create the policy action (sorry not sure about this one)?

For example I am assuming I would go to “Create Power Profile Fixlets" wizard and do my settings and then some how make that a policy?

PS. I forgot to say thanks

(imported comment written by SystemAdmin)

No problem.

There are basically two steps to what you want to do; a “create fixlet” step and a “deploy action” step (this is true for most things in bigfix).

When you hit the create fixlet button in the “Create Power Profile Fixlets” Wizard, you will get a Create Fixlet prompt that lets you review and edit the fixlet before you commit it to your deployment. Here (in the “relevance” tab) is where you should add the relevances expressions we’ve been coming up with.

Once you’ve made your fixlet, you can deploy actions from it. Go to the fixlet and click on the link to deploy the action. You will get a “Take Action” prompt, and it is here that you can specify your fixlet to be a policy action. The easiest way to do this is to select the “Policy” option for the presets, but you can manually tweak the settings to do what you want in the “execution” tab (basically the Policy preset just sets the action to reapply whenever relevant).

If that wasn’t clear, Im sure we can dig up some documentation somewhere on how to do this sort of thing.

(imported comment written by johnism91)

if you don’t mind any chance you can get me a copy of that document?

(imported comment written by SystemAdmin)

The operators guide has some stuff mentions of policy actions. Its sorta short, but it provides some good context for what i was talking about above.

http://support.bigfix.com/product/documents/BES_Console_Guide_80_100629.pdf

There is also a KB article on it that might be helpful:

http://support.bigfix.com/cgi-bin/kbdirect.pl?id=113

(imported comment written by johnism91)

so here is the relevance I have -

(exists current user) AND not exists settings whose (name of it contains “PowerManagement_LastManStanding” AND value of it = “1”) of client AND (if name of operating system contains “Win” then (name of it = “WinXP” or name of it = “WinXP-2003”) and (csd version of it != “” AND csd version of it != “Service Pack 1”) OR name of it = “Win2003” OR name of it = “WinVista” OR name of it = “Win7” else (name of it = “Mac OS X” AND release of it >= “10.4” as version and release of it < " as version)) of operating system AND (((if name of operating system = “Mac OS X” then “Custom” else “Balanced (recommended)”) as lowercase != it as lowercase AND “Unknown” != it) of (if name of operating system = “Mac OS X” then (if exists file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” then ((if it = 3 then “Better Performance” else (if it = 2 then “Normal” else (if it = 1 then “Better Energy Savings” else “Custom”))) of integer “AC Power” of dictionary “ActivePowerProfiles” of dictionary of it) of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” else “Normal”) else (if (name of operating system = “WinVista” or name of operating system = “Win7”) then (if (value “FriendlyName” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) of registry as string) contains “,” then (following text of last “,” of preceding text of first “%00” of (value “FriendlyName” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) of registry as string)) else (preceding text of first “%00” of (value “FriendlyName” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) of registry as string))) else ((if (exists keys whose (name of it as lowercase != “.default” AND name of it as lowercase != “s-1-5-18” AND name of it as lowercase != “s-1-5-19” AND name of it as lowercase != “s-1-5-20” AND exists key “Software\Microsoft\Windows\CurrentVersion\Explorer” whose (exists value “Logon User Name” of it) of it AND value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it as string as lowercase = (if exists first “” of (value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it as string) then (preceding text of first “” of (value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it as string as lowercase) & “” & name of current user as string as lowercase) else (name of current user as string as lowercase))) of key “HKEY_USERS” of registry) then ((value “name” of key (“Control Panel\PowerCfg\PowerPolicies” & value “CurrentPowerPolicy” of key “Control Panel\PowerCfg” of it as string) of it as string) of (key (“HKEY_USERS” & (name of key whose (name of it as lowercase != “.default” AND name of it as lowercase != “s-1-5-18” AND name of it as lowercase != “s-1-5-19” AND name of it as lowercase != “s-1-5-20” AND value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it as string as lowercase = (if exists first “” of (value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it as string) then (preceding text of first “” of (value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it as string as lowercase) & “” & name of current user as string as lowercase) else (name of current user as string as lowercase))) of key “HKEY_USERS” of registry)) of registry)) else “Unknown”)))) OR ((“20” != (if (it contains “:”) then (((preceding text of first “:” of it as integer 60) + (following text of first “:” of it as integer)) as string) else (it as string))) of (if name of operating system = “Mac OS X” then ((preceding text of last “:” of ((it as integerminute) as string)) of (if exists file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” then ((if it = 3 then “20” else (if it = 2 then “10” else (if it = 1 then “5” else ((it as string) of integer “Display Sleep Timer” of dictionary “AC Power” of dictionary “Custom Profile” of dictionary of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist”)))) of integer “AC Power” of dictionary “ActivePowerProfiles” of dictionary of it) of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” else “10”)) else (if (name of operating system = “WinVista” or name of operating system = “Win7”) then ((if (it as time interval = 0 * second) then “00:00” else (preceding text of last “:” of it)) of (((if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e”) whose (exists value “ACSettingIndex” of it) of registry) then (value “ACSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e”) of registry as integer) else (if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) whose (value “ACSettingIndex” of it != “”) of registry) then (value “ACSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) of registry as integer) else 0)) * second) as string)) else ((if (it = 0second) then “00:00” else (preceding text of last “:” of (it as string))) of ((hexadecimal integer (((last 2 of first 388 of (it as string)) & (last 2 of first 386 of (it as string)))) * second)) of (value “AcPolicy” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power” of registry))))) OR ((“5” != (if (it contains “:”) then (((preceding text of first “:” of it as integer 60) + (following text of first “:” of it as integer)) as string) else (it as string))) of (if name of operating system = “Mac OS X” then ((preceding text of last “:” of ((it as integerminute) as string)) of (if exists file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” then ((if it = 2 then “5” else (if it = 1 then “2” else (if it = 0 then “1” else ((if (it = 0) then “Never” else it as string) of integer “Display Sleep Timer” of dictionary “Battery Power” of dictionary “Custom Profile” of dictionary of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist”)))) of integer “Battery Power” of dictionary “ActivePowerProfiles” of dictionary of it) of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” else “10”)) else (if (name of operating system = “WinVista” or name of operating system = “Win7”) then ((if (it as time interval = 0 * second) then “00:00” else (preceding text of last “:” of it)) of (((if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e”) whose (exists value “DCSettingIndex” of it) of registry) then (value “DCSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e”) of registry as integer) else (if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) whose (value “DCSettingIndex” of it != “”) of registry) then (value “DCSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) of registry as integer) else 0)) * second) as string)) else ((if (it = 0second) then “00:00” else (preceding text of last “:” of (it as string))) of ((hexadecimal integer (((last 2 of first 388 of (it as string)) & (last 2 of first 386 of (it as string)))) * second)) of (value “DcPolicy” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power” of registry))))) OR ((“30” != (if (it contains “:”) then (((preceding text of first “:” of it as integer 60) + (following text of first “:” of it as integer)) as string) else (it as string))) of (if name of operating system = “Mac OS X” then ((preceding text of last “:” of ((it as integerminute) as string)) of (if exists file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” then ((if it = 3 then “10” else (if it = 2 then “10” else (if it = 1 then “10” else ((it as string) of integer “Disk Sleep Timer” of dictionary “AC Power” of dictionary “Custom Profile” of dictionary of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist”)))) of integer “AC Power” of dictionary “ActivePowerProfiles” of dictionary of it) of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” else “10”)) else (if (name of operating system = “WinVista” or name of operating system = “Win7”) then ((if (it as time interval = 0 * second) then “00:00” else (preceding text of last “:” of it)) of (((if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e”) whose (exists value “ACSettingIndex” of it) of registry) then (value “ACSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e”) of registry as integer) else (if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) whose (value “ACSettingIndex” of it != “”) of registry) then (value “ACSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) of registry as integer) else 0)) * second) as string)) else ((if (it = 0second) then “00:00” else (preceding text of last “:” of (it as string))) of ((hexadecimal integer (((last 2 of first 428 of (it as string)) & (last 2 of first 426 of (it as string)))) * second)) of (value “AcPolicy” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power” of registry))))) OR ((“20” != (if (it contains “:”) then (((preceding text of first “:” of it as integer 60) + (following text of first “:” of it as integer)) as string) else (it as string))) of (if name of operating system = “Mac OS X” then ((preceding text of last “:” of ((it as integerminute) as string)) of (if exists file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” then ((if it = 2 then “10” else (if it = 1 then “10” else (if it = 0 then “10” else ((if (it = 0) then “Never” else it as string) of integer “Disk Sleep Timer” of dictionary “Battery Power” of dictionary “Custom Profile” of dictionary of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist”)))) of integer “Battery Power” of dictionary “ActivePowerProfiles” of dictionary of it) of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” else “10”) ) else (if (name of operating system = “WinVista” or name of operating system = “Win7”) then ((if (it as time interval = 0 * second) then “00:00” else (preceding text of last “:” of it)) of (((if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e”) whose (exists value “DCSettingIndex” of it) of registry) then (value “DCSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e”) of registry as integer) else (if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) whose (value “DCSettingIndex” of it != “”) of registry) then (value “DCSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) of registry as integer) else 0)) * second) as string)) else ((if (it = 0second) then “00:00” else (preceding text of last “:” of (it as string))) of ((hexadecimal integer (((last 2 of first 428 of (it as string)) & (last 2 of first 426 of (it as string)))) * second)) of (value “DcPolicy” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power” of registry))))) OR ((“60” != (if (it contains “:”) then (((preceding text of first “:” of it as integer 60) + (following text of first “:” of it as integer)) as string) else (it as string))) of (if name of operating system = “Mac OS X” then ((preceding text of last “:” of ((it as integerminute) as string)) of (if exists file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” then ((if it = 3 then “0” else (if it = 2 then “10” else (if it = 1 then “10” else ((it as string) of integer “System Sleep Timer” of dictionary “AC Power” of dictionary “Custom Profile” of dictionary of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist”)))) of integer “AC Power” of dictionary “ActivePowerProfiles” of dictionary of it) of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” else “10”)) else (if (name of operating system = “WinVista” or name of operating system = “Win7”) then ((if (it as time interval = 0 * second) then “00:00” else (preceding text of last “:” of it)) of (((if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da”) whose (exists value “ACSettingIndex” of it) of registry) then (value “ACSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da”) of registry as integer) else (if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) whose (value “ACSettingIndex” of it != “”) of registry) then (value “ACSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) of registry as integer) else 0)) * second) as string)) else (((if (item 4 of it = “02” OR item 5 of it = “00”) then ((if (it = 0) then “00:00” else preceding text of last “:” of ((it * second) as string)) of (hexadecimal integer (item 0 of it & item 1 of it))) else (“00:00”))) of ((last 2 of first 124 of (value “AcPolicy” of it as string)) , (last 2 of first 122 of (value “AcPolicy” of it as string)) , (last 2 of first 180 of (value “AcPolicy” of it as string)) , (last 2 of first 178 of (value “AcPolicy” of it as string)) , (last 2 of first 98 of (value “AcPolicy” of it as string)) , (if (exists value “Heuristics” of it) then (last 2 of first 14 of (value “Heuristics” of it as string)) else (“00”))) of (key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power” of registry))))) OR ((“15” != (if (it contains “:”) then (((preceding text of first “:” of it as integer 60) + (following text of first “:” of it as integer)) as string) else (it as string))) of (if name of operating system = “Mac OS X” then ((preceding text of last “:” of ((it as integerminute) as string)) of (if exists file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” then ((if it = 2 then “15” else (if it = 1 then “10” else (if it = 0 then “5” else ((if (it = 0) then “Never” else it as string) of integer “System Sleep Timer” of dictionary “Battery Power” of dictionary “Custom Profile” of dictionary of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist”)))) of integer “Battery Power” of dictionary “ActivePowerProfiles” of dictionary of it) of file “/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist” else “10”)) else (if (name of operating system = “WinVista” or name of operating system = “Win7”) then ((if (it as time interval = 0 * second) then “00:00” else (preceding text of last “:” of it)) of (((if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da”) whose (exists value “DCSettingIndex” of it) of registry) then (value “DCSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string) & “\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da”) of registry as integer) else (if (exists key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) whose (value “DCSettingIndex” of it != “”) of registry) then (value “DCSettingIndex” of key (“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da\DefaultPowerSchemeValues” & (value “ActivePowerScheme” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes” of registry as string)) of registry as integer) else 0)) * second) as string)) else (((if (item 4 of it = “02” OR item 5 of it = “00”) then ((if (it = 0) then “00:00” else preceding text of last “:” of ((it * second) as string)) of (hexadecimal integer (item 0 of it & item 1 of it))) else (“00:00”))) of ((last 2 of first 124 of (value “DcPolicy” of it as string)) , (last 2 of first 122 of (value “DcPolicy” of it as string)) , (last 2 of first 180 of (value “DcPolicy” of it as string)) , (last 2 of first 178 of (value “DcPolicy” of it as string)) , (last 2 of first 98 of (value “DcPolicy” of it as string)) , (if (exists value “Heuristics” of it) then (last 2 of first 14 of (value “Heuristics” of it as string)) else (“00”))) of (key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power” of registry)))))exists running applications whose (name of it as lowercase =“POWERPNT.EXE” or name of it as lowercase = “excel.exe”)

)

at the end is where I add you line and set it up as a policy that reaplies when it is relevant. So far this did not work . Is my stsement off?

Thanks again for your help / incite ,

John

(imported comment written by SystemAdmin)

the last little bit you added is missing the “AND” between the big wizard generated chunk, and the piece you’ve added.

Also, since the check for the running application name is “as lowercase”, and the power point name is in caps, it wont be relevant when power point is running. You can fix that by just replacing “POWERPNT.EXE” with “powerpnt.exe”

(imported comment written by johnism91)

ok tried those and still no luck , any other ideas?

Thanks again for your help ,

John

(imported comment written by SystemAdmin)

I just tested it on mine, its an issue with parentheses. You want this new clause to be outside the entire power expression (in your example its within a set of parens)

try this:

(exists current user) AND not exists settings whose (name of it contains 
"PowerManagement_LastManStanding" AND value of it = 
"1") of client AND (

if name of operating system contains 
"Win" then (name of it = 
"WinXP" or name of it = 
"WinXP-2003") and (csd version of it != 
"" AND csd version of it != 
"Service Pack 1") OR name of it = 
"Win2003" OR name of it = 
"WinVista" OR name of it = 
"Win7" 

else (name of it = 
"Mac OS X" AND release of it >= 
"10.4" as version and release of it < 
" as version)) of operating system AND (((if name of operating system = "Mac OS X
" then "Custom
" else "Balanced (recommended)
") as lowercase != it as lowercase AND "Unknown
" != it) of (if name of operating system = "Mac OS X
" then (if exists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" then ((if it = 3 then "Better Performance
" else (if it = 2 then "Normal
" else (if it = 1 then "Better Energy Savings
" else "Custom
"))) of integer "AC Power
" of dictionary "ActivePowerProfiles
" of dictionary of it) of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" else "Normal
") else (if (name of operating system = "WinVista
" or name of operating system = "Win7
") then (if (value "FriendlyName
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string)) of registry as string) contains ",
" then (following text of last ",
" of preceding text of first "%00
" of (value "FriendlyName
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string)) of registry as string)) else (preceding text of first "%00
" of (value "FriendlyName
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string)) of registry as string))) else ((if (exists keys whose (name of it as lowercase != ".default
" AND name of it as lowercase != "s-1-5-18
" AND name of it as lowercase != "s-1-5-19
" AND name of it as lowercase != "s-1-5-20
" AND exists key "Software\Microsoft\Windows\CurrentVersion\Explorer
" whose (exists value "Logon User Name
" of it) of it AND value "Logon User Name
" of key "Software\Microsoft\Windows\CurrentVersion\Explorer
" of it as string as lowercase = (if exists first "\
" of (value "Logon User Name
" of key "Software\Microsoft\Windows\CurrentVersion\Explorer
" of it as string) then (preceding text of first "\
" of (value "Logon User Name
" of key "Software\Microsoft\Windows\CurrentVersion\Explorer
" of it as string as lowercase) & "\
" & name of current user as string as lowercase) else (name of current user as string as lowercase))) of key "HKEY_USERS
" of registry) then ((value "name
" of key ("Control Panel\PowerCfg\PowerPolicies\
" & value "CurrentPowerPolicy
" of key "Control Panel\PowerCfg
" of it as string) of it as string) of (key ("HKEY_USERS\
" & (name of key whose (name of it as lowercase != ".default
" AND name of it as lowercase != "s-1-5-18
" AND name of it as lowercase != "s-1-5-19
" AND name of it as lowercase != "s-1-5-20
" AND value "Logon User Name
" of key "Software\Microsoft\Windows\CurrentVersion\Explorer
" of it as string as lowercase = (if exists first "\
" of (value "Logon User Name
" of key "Software\Microsoft\Windows\CurrentVersion\Explorer
" of it as string) then (preceding text of first "\
" of (value "Logon User Name
" of key "Software\Microsoft\Windows\CurrentVersion\Explorer
" of it as string as lowercase) & "\
" & name of current user as string as lowercase) else (name of current user as string as lowercase))) of key "HKEY_USERS
" of registry)) of registry)) else "Unknown
")))) OR (("20
" != (if (it contains ":
") then (((preceding text of first ":
" of it as integer *60) + (following text of first ":
" of it as integer)) as string) else (it as string))) of (if name of operating system = "Mac OS X
" then ((preceding text of last ":
" of ((it as integer*minute) as string)) of (if exists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" then ((if it = 3 then "20
" else (if it = 2 then "10
" else (if it = 1 then "5
" else ((it as string) of integer "Display Sleep Timer
" of dictionary "AC Power
" of dictionary "Custom Profile
" of dictionary of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
")))) of integer "AC Power
" of dictionary "ActivePowerProfiles
" of dictionary of it) of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" else "10
")) else (if (name of operating system = "WinVista
" or name of operating system = "Win7
") then ((if (it as time interval = 0 * second) then "00:00
" else (preceding text of last ":
" of it)) of (((if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e
") whose (exists value "ACSettingIndex
" of it) of registry) then (value "ACSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e
") of registry as integer) else (if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) whose (value "ACSettingIndex
" of it != "
") of registry) then (value "ACSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) of registry as integer) else 0)) * second) as string)) else ((if (it = 0*second) then "00:00
" else (preceding text of last ":
" of (it as string))) of ((hexadecimal integer (((last 2 of first 388 of (it as string)) & (last 2 of first 386 of (it as string)))) * second)) of (value "AcPolicy
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
" of registry))))) OR (("5
" != (if (it contains ":
") then (((preceding text of first ":
" of it as integer *60) + (following text of first ":
" of it as integer)) as string) else (it as string))) of (if name of operating system = "Mac OS X
" then ((preceding text of last ":
" of ((it as integer*minute) as string)) of (if exists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" then ((if it = 2 then "5
" else (if it = 1 then "2
" else (if it = 0 then "1
" else ((if (it = 0) then "Never
" else it as string) of integer "Display Sleep Timer
" of dictionary "Battery Power
" of dictionary "Custom Profile
" of dictionary of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
")))) of integer "Battery Power
" of dictionary "ActivePowerProfiles
" of dictionary of it) of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" else "10
")) else (if (name of operating system = "WinVista
" or name of operating system = "Win7
") then ((if (it as time interval = 0 * second) then "00:00
" else (preceding text of last ":
" of it)) of (((if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e
") whose (exists value "DCSettingIndex
" of it) of registry) then (value "DCSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e
") of registry as integer) else (if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) whose (value "DCSettingIndex
" of it != "
") of registry) then (value "DCSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) of registry as integer) else 0)) * second) as string)) else ((if (it = 0*second) then "00:00
" else (preceding text of last ":
" of (it as string))) of ((hexadecimal integer (((last 2 of first 388 of (it as string)) & (last 2 of first 386 of (it as string)))) * second)) of (value "DcPolicy
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
" of registry))))) OR (("30
" != (if (it contains ":
") then (((preceding text of first ":
" of it as integer *60) + (following text of first ":
" of it as integer)) as string) else (it as string))) of (if name of operating system = "Mac OS X
" then ((preceding text of last ":
" of ((it as integer*minute) as string)) of (if exists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" then ((if it = 3 then "10
" else (if it = 2 then "10
" else (if it = 1 then "10
" else ((it as string) of integer "Disk Sleep Timer
" of dictionary "AC Power
" of dictionary "Custom Profile
" of dictionary of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
")))) of integer "AC Power
" of dictionary "ActivePowerProfiles
" of dictionary of it) of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" else "10
")) else (if (name of operating system = "WinVista
" or name of operating system = "Win7
") then ((if (it as time interval = 0 * second) then "00:00
" else (preceding text of last ":
" of it)) of (((if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e
") whose (exists value "ACSettingIndex
" of it) of registry) then (value "ACSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e
") of registry as integer) else (if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) whose (value "ACSettingIndex
" of it != "
") of registry) then (value "ACSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) of registry as integer) else 0)) * second) as string)) else ((if (it = 0*second) then "00:00
" else (preceding text of last ":
" of (it as string))) of ((hexadecimal integer (((last 2 of first 428 of (it as string)) & (last 2 of first 426 of (it as string)))) * second)) of (value "AcPolicy
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
" of registry))))) OR (("20
" != (if (it contains ":
") then (((preceding text of first ":
" of it as integer *60) + (following text of first ":
" of it as integer)) as string) else (it as string))) of (if name of operating system = "Mac OS X
" then ((preceding text of last ":
" of ((it as integer*minute) as string)) of (if exists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" then ((if it = 2 then "10
" else (if it = 1 then "10
" else (if it = 0 then "10
" else ((if (it = 0) then "Never
" else it as string) of integer "Disk Sleep Timer
" of dictionary "Battery Power
" of dictionary "Custom Profile
" of dictionary of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
")))) of integer "Battery Power
" of dictionary "ActivePowerProfiles
" of dictionary of it) of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" else "10
") ) else (if (name of operating system = "WinVista
" or name of operating system = "Win7
") then ((if (it as time interval = 0 * second) then "00:00
" else (preceding text of last ":
" of it)) of (((if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e
") whose (exists value "DCSettingIndex
" of it) of registry) then (value "DCSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e
") of registry as integer) else (if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) whose (value "DCSettingIndex
" of it != "
") of registry) then (value "DCSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) of registry as integer) else 0)) * second) as string)) else ((if (it = 0*second) then "00:00
" else (preceding text of last ":
" of (it as string))) of ((hexadecimal integer (((last 2 of first 428 of (it as string)) & (last 2 of first 426 of (it as string)))) * second)) of (value "DcPolicy
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
" of registry)))))  OR (("60
" != (if (it contains ":
") then (((preceding text of first ":
" of it as integer *60) + (following text of first ":
" of it as integer)) as string) else (it as string))) of (if name of operating system = "Mac OS X
" then ((preceding text of last ":
" of ((it as integer*minute) as string)) of (if exists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" then ((if it = 3 then "0
" else (if it = 2 then "10
" else (if it = 1 then "10
" else ((it as string) of integer "System Sleep Timer
" of dictionary "AC Power
" of dictionary "Custom Profile
" of dictionary of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
")))) of integer "AC Power
" of dictionary "ActivePowerProfiles
" of dictionary of it) of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" else "10
")) else (if (name of operating system = "WinVista
" or name of operating system = "Win7
") then ((if (it as time interval = 0 * second) then "00:00
" else (preceding text of last ":
" of it)) of (((if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da
") whose (exists value "ACSettingIndex
" of it) of registry) then (value "ACSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da
") of registry as integer) else (if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) whose (value "ACSettingIndex
" of it != "
") of registry) then (value "ACSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) of registry as integer) else 0)) * second) as string)) else (((if (item 4 of it = "02
" OR item 5 of it = "00
") then ((if (it = 0) then "00:00
" else preceding text of last ":
" of ((it * second) as string)) of (hexadecimal integer (item 0 of it & item 1 of it))) else ("00:00
"))) of ((last 2 of first 124 of (value "AcPolicy
" of it as string)) , (last 2 of first 122 of (value "AcPolicy
" of it as string)) , (last 2 of first 180 of (value "AcPolicy
" of it as string)) , (last 2 of first 178 of (value "AcPolicy
" of it as string)) , (last 2 of first 98 of (value "AcPolicy
" of it as string)) , (if (exists value "Heuristics
" of it) then (last 2 of first 14 of (value "Heuristics
" of it as string)) else ("00
"))) of (key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
" of registry)))))  OR (("15
" != (if (it contains ":
") then (((preceding text of first ":
" of it as integer *60) + (following text of first ":
" of it as integer)) as string) else (it as string))) of (if name of operating system = "Mac OS X
" then ((preceding text of last ":
" of ((it as integer*minute) as string)) of (if exists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" then ((if it = 2 then "15
" else (if it = 1 then "10
" else (if it = 0 then "5
" else ((if (it = 0) then "Never
" else it as string) of integer "System Sleep Timer
" of dictionary "Battery Power
" of dictionary "Custom Profile
" of dictionary of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
")))) of integer "Battery Power
" of dictionary "ActivePowerProfiles
" of dictionary of it) of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
" else "10
")) else (if (name of operating system = "WinVista
" or name of operating system = "Win7
") then ((if (it as time interval = 0 * second) then "00:00
" else (preceding text of last ":
" of it)) of (((if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da
") whose (exists value "DCSettingIndex
" of it) of registry) then (value "DCSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
" of registry as string) & "\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da
") of registry as integer) else (if (exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) whose (value "DCSettingIndex
" of it != "
") of registry) then (value "DCSettingIndex
" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da\DefaultPowerSchemeValues\
" & (value "ActivePowerScheme
" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
" of registry as string)) of registry as integer) else 0)) * second) as string)) else (((if (item 4 of it = "02
" OR item 5 of it = "00
") then ((if (it = 0) then "00:00
" else preceding text of last ":
" of ((it * second) as string)) of (hexadecimal integer (item 0 of it & item 1 of it))) else ("00:00
"))) of ((last 2 of first 124 of (value "DcPolicy
" of it as string)) , (last 2 of first 122 of (value "DcPolicy
" of it as string)) , (last 2 of first 180 of (value "DcPolicy
" of it as string)) , (last 2 of first 178 of (value "DcPolicy
" of it as string)) , (last 2 of first 98 of (value "DcPolicy
" of it as string)) , (if (exists value "Heuristics
" of it) then (last 2 of first 14 of (value "Heuristics
" of it as string)) else ("00
"))) of (key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
" of registry)))))) AND  not exists running applications whose  (name of it as lowercase = "POWERPNT.EXE
" as lowercase or name of it as lowercase = "excel.exe
")

(imported comment written by johnism91)

Just checking but I thought you had said to remove the “not” so it would read .

AND exists running applications whose (name of it as lowercase = “powerpnt.exe” as lowercase or name of it as lowercase = “excel.exe”) also I tried this and for some reason a brand new imaged machine with NO power config set up bigfix returns that it is Not Relevant any ideas why?

Thank you again ,

John

(imported comment written by johnism91)

does anyone elese know if there is a way to keep the power managment fucntions from coming on if a certain exe is running . The" running applications " does not seem to work .

(imported comment written by SystemAdmin)

johnism

Just checking but I thought you had said to remove the “not” so it would read .
AND exists running applications whose (name of it as lowercase = “powerpnt.exe” as lowercase or name of it as lowercase = “excel.exe”)

you should keep the not, otherwise the policy would be relevant only if powerpoint or excel were running, which i believe is the opposite of what you want.