|
@ -64,8 +64,8 @@ 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-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" |
|
|
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR |
|
|
Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version.UBR) |
|
|
Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) |
|
|
|
|
|
|
|
|
Start-Process -FilePath "https://t.me/sophia_chat" |
|
|
Start-Process -FilePath "https://t.me/sophia_chat" |
|
|
|
|
|
|
|
@ -75,7 +75,7 @@ function Checks |
|
|
Start-Sleep -Seconds 1 |
|
|
Start-Sleep -Seconds 1 |
|
|
|
|
|
|
|
|
# Check for UWP apps updates |
|
|
# 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 |
|
|
# Open the "Windows Update" page |
|
|
Start-Process -FilePath "ms-settings:windowsupdate" |
|
|
Start-Process -FilePath "ms-settings:windowsupdate" |
|
@ -97,8 +97,8 @@ 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-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" |
|
|
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR |
|
|
Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version.UBR) |
|
|
Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) |
|
|
|
|
|
|
|
|
Start-Process -FilePath "https://t.me/sophia_chat" |
|
|
Start-Process -FilePath "https://t.me/sophia_chat" |
|
|
|
|
|
|
|
@ -108,7 +108,7 @@ function Checks |
|
|
Start-Sleep -Seconds 1 |
|
|
Start-Sleep -Seconds 1 |
|
|
|
|
|
|
|
|
# Check for UWP apps updates |
|
|
# 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 |
|
|
# Open the "Windows Update" page |
|
|
Start-Process -FilePath "ms-settings:windowsupdate" |
|
|
Start-Process -FilePath "ms-settings:windowsupdate" |
|
@ -10525,7 +10525,7 @@ function CheckUWPAppsUpdates |
|
|
{ |
|
|
{ |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Verbose -Message $Localization.Patient -Verbose |
|
|
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 |
|
|
#endregion UWP apps |
|
|
|
|
|
|
|
|