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