Skip to content

Instantly share code, notes, and snippets.

@ebibibi
Created November 15, 2013 08:01
Show Gist options
  • Select an option

  • Save ebibibi/7480767 to your computer and use it in GitHub Desktop.

Select an option

Save ebibibi/7480767 to your computer and use it in GitHub Desktop.
電源プランを「高パフォーマンス」に設定します。
$p = Get-CimInstance -Name root\cimv2\power -Class win32_PowerPlan -Filter "ElementName = '高パフォーマンス'"
Invoke-CimMethod -InputObject $p[0] -MethodName Activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment