From 2a5e28764c8408b3d48e898f8d3f3371220b36a9 Mon Sep 17 00:00:00 2001 From: amd64fox Date: Thu, 31 Mar 2022 17:38:24 +0300 Subject: [PATCH] Removed warning in Powershell 7 and higher --- Install.ps1 | 2 +- Install_rus.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index aa7582a..997ee18 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -28,7 +28,7 @@ Stop-Process -Name Spotify Stop-Process -Name SpotifyWebHelper if ($PSVersionTable.PSVersion.Major -ge 7) { - Import-Module Appx -UseWindowsPowerShell + Import-Module Appx -UseWindowsPowerShell -WarningAction:SilentlyContinue } # Check version Windows $win_os = (get-itemproperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName).ProductName diff --git a/Install_rus.ps1 b/Install_rus.ps1 index 8d53cf3..0921005 100644 --- a/Install_rus.ps1 +++ b/Install_rus.ps1 @@ -28,7 +28,7 @@ Stop-Process -Name Spotify Stop-Process -Name SpotifyWebHelper if ($PSVersionTable.PSVersion.Major -ge 7) { - Import-Module Appx -UseWindowsPowerShell + Import-Module Appx -UseWindowsPowerShell -WarningAction:SilentlyContinue } # Проверка версии Windows $win_os = (get-itemproperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName).ProductName