Last active
April 7, 2016 08:09
-
-
Save Pyromaniaxxx/02c00aad017dc2063ba270c67f8a521e to your computer and use it in GitHub Desktop.
WMI ハンドル数の上限値変更
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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