mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
* Apply code style rules to Windows scripts * Fix typo * Fix configure-toolset script * Fix parameters in Msys2 installation script * Improve log readability * Remove broken exit code validation
15 lines
843 B
PowerShell
15 lines
843 B
PowerShell
################################################################################
|
|
## File: Configure-GDIProcessHandleQuota.ps1
|
|
## Desc: Set the GDIProcessHandleQuota value to 20000
|
|
################################################################################
|
|
|
|
# https://docs.microsoft.com/en-us/windows/win32/sysinfo/gdi-objects
|
|
# This value can be set to a number between 256 and 65,536
|
|
|
|
$defaultValue = 20000
|
|
Write-Host "Set the GDIProcessHandleQuota value to $defaultValue"
|
|
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" -Name GDIProcessHandleQuota -Value $defaultValue
|
|
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Windows" -Name GDIProcessHandleQuota -Value $defaultValue
|
|
|
|
Invoke-PesterTests -TestFile "WindowsFeatures" -TestName "GDIProcessHandleQuota"
|