Browse Source

regarding #449

pull/450/head
Dmitry Nefedov 2 years ago
parent
commit
08d59aee98
  1. 12
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  2. 12
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

12
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -64,8 +64,10 @@ function Checks
{ {
# Check whether the OS minor build version is 1335 minimum # Check whether the OS minor build version is 1335 minimum
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information # https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
Write-Warning -Message ($Localization.UpdateWarning -f $CurrentBuild.CurrentBuild, $UBR.UBR)
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
@ -97,8 +99,10 @@ function Checks
{ {
# Check whether the OS minor build version is 1335 minimum # Check whether the OS minor build version is 1335 minimum
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information # https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
Write-Warning -Message ($Localization.UpdateWarning -f $CurrentBuild.CurrentBuild, $UBR.UBR)
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"

12
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -64,8 +64,10 @@ function Checks
{ {
# Check whether the OS minor build version is 1335 minimum # Check whether the OS minor build version is 1335 minimum
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information # https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
Write-Warning -Message ($Localization.UpdateWarning -f $CurrentBuild.CurrentBuild, $UBR.UBR)
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
@ -97,8 +99,10 @@ function Checks
{ {
# Check whether the OS minor build version is 1335 minimum # Check whether the OS minor build version is 1335 minimum
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information # https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
Write-Warning -Message ($Localization.UpdateWarning -f $CurrentBuild.CurrentBuild, $UBR.UBR)
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"

Loading…
Cancel
Save