R
rflazaro
Hi All,
We are trying to build an automation utility to configure OS. I found a way
to automate the processes below via registry:
Control Panel -> Power Options -> Power Schemes Tab:
-> Power schemes -> Presentation
Turn off monitor Never
Turn off hard disks Never
System Standby Never
HKEY_CURRENT_USER\Control Panel\PowerCfg
String Value name Value Data
CurrentPowerPolicy 2
HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolicies\2
- set above settings then export the key
- run the imported registry setting in the code
But may I ask for anyone who could help me find a way to automate in C# the
process above via WMI/API?
Thanks in advance!
We are trying to build an automation utility to configure OS. I found a way
to automate the processes below via registry:
Control Panel -> Power Options -> Power Schemes Tab:
-> Power schemes -> Presentation
Turn off monitor Never
Turn off hard disks Never
System Standby Never
HKEY_CURRENT_USER\Control Panel\PowerCfg
String Value name Value Data
CurrentPowerPolicy 2
HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolicies\2
- set above settings then export the key
- run the imported registry setting in the code
But may I ask for anyone who could help me find a way to automate in C# the
process above via WMI/API?
Thanks in advance!