Posted On March 31, 2019

Increase Windows Management Instrumentation Service Handle Quota Limit

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Increase Windows Management Instrumentation Service Handle Quota Limit
WMI.ps1
----------------------------------------------
$config = gwmi -Class "__ProviderHostQuotaConfiguration" -Namespace root
$config | select -Property * -ExcludeProperty __* | ft -AutoSize
$config.HandlesPerHost = 8*1024
$config.Put()
-----------------------------------------------
Source: https://learn.microsoft.com/en-us/archive/blogs/

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Process Watcher

# processWatcher.ps1 # User Input $serviceName='MSCRMAsyncService$maintenance' # Semi-autogen variables $desiredStatus='Running' $environment=($env:computername).substring(0,$env:computername.IndexOf('-')) $reportServer="$environment-SQL01" function checkService($computername=$env:computername,$serviceName,$status='Running'){ #…

PowerShell: Add and Remove a Registry Key

How to Add a Registry Key # Add New Registry Key $regHive='REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM' $keyname='OleDbTimeout' $value=600 Set-ItemProperty…

PowerShell: Try Catch Technique to Obtain Error Type

# Test try{Read-SCVirtualMachine $vmName -EA Stop}catch{$errorMessage=$error[0].Exception.GetType().FullNamewrite-host $errorMessage} # Get error type Microsoft.VirtualManager.Utils.CarmineException # Retry catch…
Other project: DragonCoin.com