From 71a8689936864c08ccf2abf5e17be4b06945e552 Mon Sep 17 00:00:00 2001 From: farag2 Date: Tue, 2 Apr 2019 14:55:39 +0300 Subject: [PATCH] Update Win 10.ps1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit При сравнении $null поставил слева. --- Win 10.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Win 10.ps1 b/Win 10.ps1 index 0d9aa6de..b3f0e7b5 100644 --- a/Win 10.ps1 +++ b/Win 10.ps1 @@ -942,7 +942,7 @@ New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name FeatureSettingsOverride -Value 1024 -Force New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name FeatureSettingsOverrideMask -Value 1024 -Force # Установить параметры производительности графики для отдельных приложений на "Высокая производительность" -IF ((Get-CimInstance -ClassName Win32_VideoController | Where-Object {$_.AdapterDACType -ne "Internal" -and $_.AdapterDACType -ne $null}).Caption) +IF ((Get-CimInstance -ClassName Win32_VideoController | Where-Object {$_.AdapterDACType -ne "Internal" -and $null -ne $_.AdapterDACType}}).Caption) { IF (Test-Path -Path "${env:ProgramFiles(x86)}\Steam") {