mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 14:10:54 +10:00
Removed warning in Powershell 7 and higher
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ Stop-Process -Name Spotify
|
|||||||
Stop-Process -Name SpotifyWebHelper
|
Stop-Process -Name SpotifyWebHelper
|
||||||
|
|
||||||
if ($PSVersionTable.PSVersion.Major -ge 7) {
|
if ($PSVersionTable.PSVersion.Major -ge 7) {
|
||||||
Import-Module Appx -UseWindowsPowerShell
|
Import-Module Appx -UseWindowsPowerShell -WarningAction:SilentlyContinue
|
||||||
}
|
}
|
||||||
# Check version Windows
|
# Check version Windows
|
||||||
$win_os = (get-itemproperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName).ProductName
|
$win_os = (get-itemproperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName).ProductName
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ Stop-Process -Name Spotify
|
|||||||
Stop-Process -Name SpotifyWebHelper
|
Stop-Process -Name SpotifyWebHelper
|
||||||
|
|
||||||
if ($PSVersionTable.PSVersion.Major -ge 7) {
|
if ($PSVersionTable.PSVersion.Major -ge 7) {
|
||||||
Import-Module Appx -UseWindowsPowerShell
|
Import-Module Appx -UseWindowsPowerShell -WarningAction:SilentlyContinue
|
||||||
}
|
}
|
||||||
# Проверка версии Windows
|
# Проверка версии Windows
|
||||||
$win_os = (get-itemproperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName).ProductName
|
$win_os = (get-itemproperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName).ProductName
|
||||||
|
|||||||
Reference in New Issue
Block a user