From 3b38159087faaf7cdc9ac65b8ba85fb15c96346d Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Wed, 9 Oct 2024 21:37:05 +0300 Subject: [PATCH] Fix for #591 --- src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 | 2 +- src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 | 2 +- src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index 39ca0853..89732039 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -580,7 +580,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } # Detect Windows build version - if ((Get-WindowsEdition -Online).Edition -ne "EnterpriseS") + if ((Get-WindowsEdition -Online).Edition -notmatch "EnterpriseS") { Write-Information -MessageData "" -InformationAction Continue Write-Warning -Message $Localization.UnsupportedOSBuild diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 36adaabf..7f89b476 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -580,7 +580,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } # Detect Windows build version - if ((Get-WindowsEdition -Online).Edition -ne "EnterpriseS") + if ((Get-WindowsEdition -Online).Edition -notmatch "EnterpriseS") { Write-Information -MessageData "" -InformationAction Continue Write-Warning -Message $Localization.UnsupportedOSBuild diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 index 71ce7946..5d29407e 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 @@ -578,7 +578,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } # Detect Windows build version - if ((Get-WindowsEdition -Online).Edition -ne "EnterpriseS") + if ((Get-WindowsEdition -Online).Edition -notmatch "EnterpriseS") { Write-Information -MessageData "" -InformationAction Continue Write-Warning -Message $Localization.UnsupportedOSBuild