Dmitry Nefedov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
4 deletions
-
Sophia/Windows 11/Localizations/en-US/Sophia.psd1
-
Sophia/Windows 11/Module/Sophia.psm1
|
@ -1,7 +1,7 @@ |
|
|
ConvertFrom-StringData -StringData @' |
|
|
ConvertFrom-StringData -StringData @' |
|
|
UnsupportedOSBitness = The script supports Windows 10 x64 only |
|
|
UnsupportedOSBitness = The script supports Windows 10 x64 only |
|
|
UnsupportedOSBuild = The script supports Windows 10 2004/20H2/21H1 versions and higher |
|
|
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 |
|
|
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode |
|
|
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights |
|
|
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 |
|
|
UnsupportedPowerShell = You're trying to run script via PowerShell {0}. Run the script in the appropriate PowerShell version |
|
|
|
@ -76,13 +76,13 @@ function Checkings |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# Check whether the OS minor build version is 100 minimum |
|
|
# Check whether the OS minor build version is 120 minimum |
|
|
switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 100) |
|
|
switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 120) |
|
|
{ |
|
|
{ |
|
|
$false |
|
|
$false |
|
|
{ |
|
|
{ |
|
|
$Version = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" |
|
|
$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) |
|
|
Write-Warning -Message ($Localization.UpdateWarning -f $Version) |
|
|
|
|
|
|
|
|