From b52b5ef190f0dc8b8cd5ca624d99a1962bc53784 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Thu, 19 Jan 2023 00:37:22 +0300 Subject: [PATCH] Updated readmes --- README.md | 13 +++++++------ README_uk-ua.md | 13 +++++++------ .../Module/Sophia.psm1 | 4 ++-- .../Module/Sophia.psm1 | 4 ++-- src/Sophia_Script_for_Windows_11/Functions.ps1 | 2 +- .../Module/Sophia.psm1 | 14 +++++++------- .../Module/Sophia.psm1 | 14 +++++++------- 7 files changed, 33 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index cdb273d5..89f82c62 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ + @@ -112,12 +113,12 @@ | Version | Marketing name | Build | Arch | Editions | |:-------------------------------------|--------------------:|:-----------:|:----:|:-------------------:| | Windows 11 Insider Preview 23H2 | 2023 Update | 22509+ | | Home/Pro/Enterprise | -| Windows 11 22H2 | 2022 Update | 22621 | | Home/Pro/Enterprise | -| Windows 11 21H2 | | 22000.739+ | | Home/Pro/Enterprise | -| Windows 10 22H2 | 2022 Update | 19045.2006+ | x64 | Home/Pro/Enterprise | -| Windows 10 21H2 | October 2021 Update | 19044.1706+ | x64 | Home/Pro/Enterprise | -| Windows 10 21H2 Enterprise LTSC 2021 | October 2021 Update | 19044.1706+ | x64 | Enterprise | -| Windows 10 1809 Enterprise LTSC 2019 | October 2018 Update | 17763.3046+ | x64 | Enterprise | +| Windows 11 22H2 | 2022 Update | 22621.963+ | | Home/Pro/Enterprise | +| Windows 11 21H2 | | 22000.1335+ | | Home/Pro/Enterprise | +| Windows 10 22H2 | 2022 Update | 19045.2364+ | x64 | Home/Pro/Enterprise | +| Windows 10 21H2 | October 2021 Update | 19044.2364+ | x64 | Home/Pro/Enterprise | +| Windows 10 21H2 Enterprise LTSC 2021 | October 2021 Update | 19044.2364+ | x64 | Enterprise | +| Windows 10 1809 Enterprise LTSC 2019 | October 2018 Update | 17763.3770+ | x64 | Enterprise | ### Warning diff --git a/README_uk-ua.md b/README_uk-ua.md index c8fdc933..30dc4313 100644 --- a/README_uk-ua.md +++ b/README_uk-ua.md @@ -17,6 +17,7 @@ + @@ -112,12 +113,12 @@ | Версія | Маркетингова назва | Збіркa | Архітектура | Видання | |:-------------------------------------|--------------------:|:-----------:|:-----------:|:-------------------:| | Windows 11 Insider Preview 23H2 | 2023 Update | 22509+ | | Home/Pro/Enterprise | -| Windows 11 22H2 | 2022 Update | 22621 | | Home/Pro/Enterprise | -| Windows 11 21H2 | | 22000.739+ | | Home/Pro/Enterprise | -| Windows 10 22H2 | 2022 Update | 19045.2006+ | x64 | Home/Pro/Enterprise | -| Windows 10 21H2 | October 2021 Update | 19044.1706+ | x64 | Home/Pro/Enterprise | -| Windows 10 21H2 Enterprise LTSC 2021 | October 2021 Update | 19044.1706+ | x64 | Enterprise | -| Windows 10 1809 Enterprise LTSC 2019 | October 2018 Update | 17763.3046+ | x64 | Enterprise | +| Windows 11 22H2 | 2022 Update | 22621.963+ | | Home/Pro/Enterprise | +| Windows 11 21H2 | | 22000.1335+ | | Home/Pro/Enterprise | +| Windows 10 22H2 | 2022 Update | 19045.2364+ | x64 | Home/Pro/Enterprise | +| Windows 10 21H2 | October 2021 Update | 19044.2364+ | x64 | Home/Pro/Enterprise | +| Windows 10 21H2 Enterprise LTSC 2021 | October 2021 Update | 19044.2364+ | x64 | Enterprise | +| Windows 10 1809 Enterprise LTSC 2019 | October 2018 Update | 17763.3770+ | x64 | Enterprise | ### Увага diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 0ec3c79b..3e5011e8 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -84,7 +84,7 @@ function Checks Start-Sleep -Seconds 1 # Check for UWP apps updates - Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod + Get-CimInstance -Namespace root\cimv2\mdm\dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod # Open the "Windows Update" page Start-Process -FilePath "ms-settings:windowsupdate" @@ -11059,7 +11059,7 @@ function CheckUWPAppsUpdates { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message $Localization.Patient -Verbose - Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod + Get-CimInstance -Namespace root\cimv2\mdm\dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod } #endregion UWP apps diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index 4ff6b0df..65027382 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -84,7 +84,7 @@ function Checks Start-Sleep -Seconds 1 # Check for UWP apps updates - Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod + Get-CimInstance -Namespace root\cimv2\mdm\dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod # Open the "Windows Update" page Start-Process -FilePath "ms-settings:windowsupdate" @@ -11087,7 +11087,7 @@ function CheckUWPAppsUpdates { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message $Localization.Patient -Verbose - Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod + Get-CimInstance -Namespace root\cimv2\mdm\dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod } #endregion UWP apps diff --git a/src/Sophia_Script_for_Windows_11/Functions.ps1 b/src/Sophia_Script_for_Windows_11/Functions.ps1 index 2daa49b6..950cecdc 100644 --- a/src/Sophia_Script_for_Windows_11/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_11/Functions.ps1 @@ -58,7 +58,7 @@ Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations # The mandatory checks. Please, do not comment out this function -#Checks +Checks $Parameters = @{ CommandName = "Sophia" diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index 44daa001..1bc1c33f 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -64,8 +64,8 @@ function Checks { # Check whether the OS minor build version is 1335 minimum # https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information - $Version = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" - Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version.UBR) + $Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR + Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) Start-Process -FilePath "https://t.me/sophia_chat" @@ -75,7 +75,7 @@ function Checks Start-Sleep -Seconds 1 # Check for UWP apps updates - Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod + Get-CimInstance -Namespace root\cimv2\mdm\dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod # Open the "Windows Update" page Start-Process -FilePath "ms-settings:windowsupdate" @@ -97,8 +97,8 @@ function Checks { # Check whether the OS minor build version is 1335 minimum # https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information - $Version = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" - Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version.UBR) + $Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR + Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) Start-Process -FilePath "https://t.me/sophia_chat" @@ -108,7 +108,7 @@ function Checks Start-Sleep -Seconds 1 # Check for UWP apps updates - Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod + Get-CimInstance -Namespace root\cimv2\mdm\dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod # Open the "Windows Update" page Start-Process -FilePath "ms-settings:windowsupdate" @@ -10525,7 +10525,7 @@ function CheckUWPAppsUpdates { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message $Localization.Patient -Verbose - Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod + Get-CimInstance -Namespace root\cimv2\mdm\dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod } #endregion UWP apps diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index 4fd86bd9..06b3e572 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -64,8 +64,8 @@ function Checks { # Check whether the OS minor build version is 1335 minimum # https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information - $Version = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" - Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version.UBR) + $Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR + Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) Start-Process -FilePath "https://t.me/sophia_chat" @@ -75,7 +75,7 @@ function Checks Start-Sleep -Seconds 1 # Check for UWP apps updates - Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod + Get-CimInstance -Namespace root\cimv2\mdm\dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod # Open the "Windows Update" page Start-Process -FilePath "ms-settings:windowsupdate" @@ -97,8 +97,8 @@ function Checks { # Check whether the OS minor build version is 1335 minimum # https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information - $Version = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" - Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version.UBR) + $Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR + Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) Start-Process -FilePath "https://t.me/sophia_chat" @@ -108,7 +108,7 @@ function Checks Start-Sleep -Seconds 1 # Check for UWP apps updates - Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod + Get-CimInstance -Namespace root\cimv2\mdm\dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod # Open the "Windows Update" page Start-Process -FilePath "ms-settings:windowsupdate" @@ -10553,7 +10553,7 @@ function CheckUWPAppsUpdates { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message $Localization.Patient -Verbose - Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod + Get-CimInstance -Namespace root\cimv2\mdm\dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod } #endregion UWP apps