Archive for July, 2013

Our Power Saving settings are set via a policy and quite frankly, I think they are too aggressive…so I decided to set mine using PowerShell.

# Changing the Power Saving Settings via PowerShell
$MyPlan= “Power Saver” # You could use ‘Balanced’, ‘High Performance’, ‘Power Saver’, etc here
Write-Host “Setting Power Plan to $MyPlan”
$guid = (Get-WmiObject -Class win32_powerplan -Namespace rootcimv2power -Filter “ElementName=’$MyPlan'”).InstanceID.tostring()
$regex = [regex]”{(.*?)}$”
$newPower = $regex.Match($guid).groups[1].value
powercfg -S $newPower
Write-Host “Setting Standby Timeout to Never”
POWERCFG -change -standby-timeout-ac 0
Write-Host “Setting Monitor Timeout to Never”
POWERCFG -change -monitor-timeout-ac 0


I saved this into a .ps1 file called “PowerSettings.ps1”, wrapped this up into a shortcut and placed it into my startup folder. The shortcut simply runs this command:

%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe C:\Scripts\PowerSettings.ps1

Now every time my laptop boots up, it runs the script and changes the settings to my taste.