Browse Source

Fix for #591

master
Dmitry Nefedov 2 months ago
parent
commit
3b38159087
  1. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  2. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  3. 2
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1

2
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 # Detect Windows build version
if ((Get-WindowsEdition -Online).Edition -ne "EnterpriseS") if ((Get-WindowsEdition -Online).Edition -notmatch "EnterpriseS")
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message $Localization.UnsupportedOSBuild Write-Warning -Message $Localization.UnsupportedOSBuild

2
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 # Detect Windows build version
if ((Get-WindowsEdition -Online).Edition -ne "EnterpriseS") if ((Get-WindowsEdition -Online).Edition -notmatch "EnterpriseS")
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message $Localization.UnsupportedOSBuild Write-Warning -Message $Localization.UnsupportedOSBuild

2
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 # Detect Windows build version
if ((Get-WindowsEdition -Online).Edition -ne "EnterpriseS") if ((Get-WindowsEdition -Online).Edition -notmatch "EnterpriseS")
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message $Localization.UnsupportedOSBuild Write-Warning -Message $Localization.UnsupportedOSBuild

Loading…
Cancel
Save