From 45d82ff66af7cba6feb2ac001a4d97260c06bf26 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Fri, 6 Aug 2021 09:11:14 +0300 Subject: [PATCH] Add files via upload --- Sophia/Windows 11/Localizations/en-US/Sophia.psd1 | 2 +- Sophia/Windows 11/Module/Sophia.psm1 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sophia/Windows 11/Localizations/en-US/Sophia.psd1 b/Sophia/Windows 11/Localizations/en-US/Sophia.psd1 index 8edaef5b..476acd3e 100644 --- a/Sophia/Windows 11/Localizations/en-US/Sophia.psd1 +++ b/Sophia/Windows 11/Localizations/en-US/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = The script supports Windows 10 x64 only UnsupportedOSBuild = The script supports Windows 10 2004/20H2/21H1 versions and higher -UpdateWarning = Your Windows 10 build: {0}.{1}.{2}.{3}. Supported build: 19041.1151 and higher +UpdateWarning = Your Windows 10 build: {0}.{1}. Supported build: 19041.1151 and higher UnsupportedLanguageMode = The PowerShell session in running in a limited language mode LoggedInUserNotAdmin = The logged-on user doesn't have admin rights UnsupportedPowerShell = You're trying to run script via PowerShell {0}. Run the script in the appropriate PowerShell version diff --git a/Sophia/Windows 11/Module/Sophia.psm1 b/Sophia/Windows 11/Module/Sophia.psm1 index 919e53e6..5d48bd61 100644 --- a/Sophia/Windows 11/Module/Sophia.psm1 +++ b/Sophia/Windows 11/Module/Sophia.psm1 @@ -76,13 +76,13 @@ function Checkings } } - # Check whether the OS minor build version is 100 minimum - switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 100) + # Check whether the OS minor build version is 120 minimum + switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 120) { $false { $Version = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" - $Version = $Version.CurrentMinorVersionNumber, $Version.CurrentBuild, $Version.UBR + $Version = $Version.CurrentBuild, $Version.UBR Write-Warning -Message ($Localization.UpdateWarning -f $Version)