Skip to content

Instantly share code, notes, and snippets.

@Pyromaniaxxx
Last active April 7, 2016 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pyromaniaxxx/02c00aad017dc2063ba270c67f8a521e to your computer and use it in GitHub Desktop.
Save Pyromaniaxxx/02c00aad017dc2063ba270c67f8a521e to your computer and use it in GitHub Desktop.
WMI ハンドル数の上限値変更
# get wmi object
$obj=get-wmiobject -Namespace root -Class __ProviderHostQuotaConfiguration
# current settings
Write-Host -Object ("HandlesPerHost:{0}" -f $obj.HandlesPerHost)
# update object
$obj.HandlesPerHost = 8192
$obj.Put()
# get wmi object
$obj=get-wmiobject -Namespace root -Class __ProviderHostQuotaConfiguration
# current settings
Write-Host -Object ("HandlesPerHost:{0}" -f $obj.HandlesPerHost)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment