From 44b8a07ec1dced7d08f1cc5ba86fa613fd8db33d Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Thu, 12 Feb 2026 21:12:44 +0300 Subject: [PATCH] Updated `ScheduledTasks` function --- .../Module/Sophia.psm1 | 17 +++----------- .../Module/Sophia.psm1 | 13 +---------- .../Module/Sophia.psm1 | 13 +---------- .../Module/Sophia.psm1 | 17 +++----------- .../Module/Sophia.psm1 | 23 ++++++++----------- .../Module/Sophia.psm1 | 23 ++++++++----------- .../Module/Sophia.psm1 | 23 ++++++++----------- .../Module/Sophia.psm1 | 23 ++++++++----------- .../Module/Sophia.psm1 | 23 ++++++++----------- 9 files changed, 53 insertions(+), 122 deletions(-) diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 043b338d..821a2438 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -396,7 +396,6 @@ function ScheduledTasks Add-Type -AssemblyName PresentationCore, PresentationFramework - #region Variables # Initialize an array list to store the selected scheduled tasks $SelectedTasks = New-Object -TypeName System.Collections.ArrayList($null) @@ -421,18 +420,8 @@ function ScheduledTasks "MapsToastTask", # This task checks for updates to maps which you have downloaded for offline use - "MapsUpdateTask", - - # Initializes Family Safety monitoring and enforcement - "FamilySafetyMonitor", - - # Synchronizes the latest settings with the Microsoft family features service - "FamilySafetyRefreshTask", - - # XblGameSave Standby Task - "XblGameSaveTask" + "MapsUpdateTask" ) - #endregion Variables #region XAML Markup # The section defines the design of the upcoming dialog box @@ -9311,7 +9300,7 @@ function Uninstall-UWPApps #> function Install-HEVC { - if (-not (Get-AppxPackage -Name Microsoft.Windows.Photos)) ### вытащить фотографии + if (-not (Get-AppxPackage -Name Microsoft.Windows.Photos)) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.PhotosNotInstalled, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -Verbose @@ -9320,7 +9309,7 @@ function Install-HEVC return } - if (Get-AppxPackage -Name Microsoft.HEVCVideoExtension) ### вытащить HEVC + if (Get-AppxPackage -Name Microsoft.HEVCVideoExtension) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.HEVCInstalled, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -Verbose diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index a1aac90b..a9d2a246 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -382,7 +382,6 @@ function ScheduledTasks Add-Type -AssemblyName PresentationCore, PresentationFramework - #region Variables # Initialize an array list to store the selected scheduled tasks $SelectedTasks = New-Object -TypeName System.Collections.ArrayList($null) @@ -407,18 +406,8 @@ function ScheduledTasks "MapsToastTask", # This task checks for updates to maps which you have downloaded for offline use - "MapsUpdateTask", - - # Initializes Family Safety monitoring and enforcement - "FamilySafetyMonitor", - - # Synchronizes the latest settings with the Microsoft family features service - "FamilySafetyRefreshTask", - - # XblGameSave Standby Task - "XblGameSaveTask" + "MapsUpdateTask" ) - #endregion Variables #region XAML Markup # The section defines the design of the upcoming dialog box diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 925672c9..78a954fa 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -382,7 +382,6 @@ function ScheduledTasks Add-Type -AssemblyName PresentationCore, PresentationFramework - #region Variables # Initialize an array list to store the selected scheduled tasks $SelectedTasks = New-Object -TypeName System.Collections.ArrayList($null) @@ -407,18 +406,8 @@ function ScheduledTasks "MapsToastTask", # This task checks for updates to maps which you have downloaded for offline use - "MapsUpdateTask", - - # Initializes Family Safety monitoring and enforcement - "FamilySafetyMonitor", - - # Synchronizes the latest settings with the Microsoft family features service - "FamilySafetyRefreshTask", - - # XblGameSave Standby Task - "XblGameSaveTask" + "MapsUpdateTask" ) - #endregion Variables #region XAML Markup # The section defines the design of the upcoming dialog box 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 46e4eabf..f876ec68 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 @@ -396,7 +396,6 @@ function ScheduledTasks Add-Type -AssemblyName PresentationCore, PresentationFramework - #region Variables # Initialize an array list to store the selected scheduled tasks $SelectedTasks = New-Object -TypeName System.Collections.ArrayList($null) @@ -421,18 +420,8 @@ function ScheduledTasks "MapsToastTask", # This task checks for updates to maps which you have downloaded for offline use - "MapsUpdateTask", - - # Initializes Family Safety monitoring and enforcement - "FamilySafetyMonitor", - - # Synchronizes the latest settings with the Microsoft family features service - "FamilySafetyRefreshTask", - - # XblGameSave Standby Task - "XblGameSaveTask" + "MapsUpdateTask" ) - #endregion Variables #region XAML Markup # The section defines the design of the upcoming dialog box @@ -9324,7 +9313,7 @@ function Uninstall-UWPApps function Install-HEVC function Install-HEVC { - if (-not (Get-AppxPackage -Name Microsoft.Windows.Photos)) ### вытащить фотографии + if (-not (Get-AppxPackage -Name Microsoft.Windows.Photos)) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.PhotosNotInstalled, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -Verbose @@ -9333,7 +9322,7 @@ function Install-HEVC return } - if (Get-AppxPackage -Name Microsoft.HEVCVideoExtension) ### вытащить HEVC + if (Get-AppxPackage -Name Microsoft.HEVCVideoExtension) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.HEVCInstalled, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -Verbose diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index 671eaf00..d2e9b3c4 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -396,19 +396,21 @@ function ScheduledTasks Add-Type -AssemblyName PresentationCore, PresentationFramework - #region Variables # Initialize an array list to store the selected scheduled tasks $SelectedTasks = New-Object -TypeName System.Collections.ArrayList($null) # The following tasks will have their checkboxes checked [string[]]$CheckedScheduledTasks = @( - # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + # Gathers Win32 application data for App Backup scenario "MareBackup", # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program "Microsoft Compatibility Appraiser", - # Updates compatibility database + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + "Microsoft Compatibility Appraiser Exp", + + # Scans startup entries and raises notification to the user if there are too many startup entries. "StartupAppTask", # This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program @@ -418,6 +420,8 @@ function ScheduledTasks "Consolidator", # The USB CEIP (Customer Experience Improvement Program) task collects Universal Serial Bus related statistics and information about your machine and sends it to the Windows Device Connectivity engineering group at Microsoft + # The information received is used to help improve the reliability, stability, and overall functionality of USB in Windows + # If the user has not consented to participate in Windows CEIP, this task does not do anything "UsbCeip", # The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program @@ -427,18 +431,9 @@ function ScheduledTasks "MapsToastTask", # This task checks for updates to maps which you have downloaded for offline use - "MapsUpdateTask", - - # Initializes Family Safety monitoring and enforcement - "FamilySafetyMonitor", - - # Synchronizes the latest settings with the Microsoft family features service - "FamilySafetyRefreshTask", - - # XblGameSave Standby Task - "XblGameSaveTask" + # Disabling this task will prevent Windows from notifying you of updated maps + "MapsUpdateTask" ) - #endregion Variables #region XAML Markup # The section defines the design of the upcoming dialog box diff --git a/src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1 index 27123a7a..7b1b86b0 100644 --- a/src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1 @@ -399,19 +399,21 @@ function ScheduledTasks Add-Type -AssemblyName PresentationCore, PresentationFramework - #region Variables # Initialize an array list to store the selected scheduled tasks $SelectedTasks = New-Object -TypeName System.Collections.ArrayList($null) # The following tasks will have their checkboxes checked [string[]]$CheckedScheduledTasks = @( - # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + # Gathers Win32 application data for App Backup scenario "MareBackup", # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program "Microsoft Compatibility Appraiser", - # Updates compatibility database + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + "Microsoft Compatibility Appraiser Exp", + + # Scans startup entries and raises notification to the user if there are too many startup entries. "StartupAppTask", # This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program @@ -421,6 +423,8 @@ function ScheduledTasks "Consolidator", # The USB CEIP (Customer Experience Improvement Program) task collects Universal Serial Bus related statistics and information about your machine and sends it to the Windows Device Connectivity engineering group at Microsoft + # The information received is used to help improve the reliability, stability, and overall functionality of USB in Windows + # If the user has not consented to participate in Windows CEIP, this task does not do anything "UsbCeip", # The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program @@ -430,18 +434,9 @@ function ScheduledTasks "MapsToastTask", # This task checks for updates to maps which you have downloaded for offline use - "MapsUpdateTask", - - # Initializes Family Safety monitoring and enforcement - "FamilySafetyMonitor", - - # Synchronizes the latest settings with the Microsoft family features service - "FamilySafetyRefreshTask", - - # XblGameSave Standby Task - "XblGameSaveTask" + # Disabling this task will prevent Windows from notifying you of updated maps + "MapsUpdateTask" ) - #endregion Variables #region XAML Markup # The section defines the design of the upcoming dialog box diff --git a/src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1 index 255691ab..61fc86fa 100644 --- a/src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1 @@ -399,19 +399,21 @@ function ScheduledTasks Add-Type -AssemblyName PresentationCore, PresentationFramework - #region Variables # Initialize an array list to store the selected scheduled tasks $SelectedTasks = New-Object -TypeName System.Collections.ArrayList($null) # The following tasks will have their checkboxes checked [string[]]$CheckedScheduledTasks = @( - # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + # Gathers Win32 application data for App Backup scenario "MareBackup", # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program "Microsoft Compatibility Appraiser", - # Updates compatibility database + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + "Microsoft Compatibility Appraiser Exp", + + # Scans startup entries and raises notification to the user if there are too many startup entries. "StartupAppTask", # This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program @@ -421,6 +423,8 @@ function ScheduledTasks "Consolidator", # The USB CEIP (Customer Experience Improvement Program) task collects Universal Serial Bus related statistics and information about your machine and sends it to the Windows Device Connectivity engineering group at Microsoft + # The information received is used to help improve the reliability, stability, and overall functionality of USB in Windows + # If the user has not consented to participate in Windows CEIP, this task does not do anything "UsbCeip", # The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program @@ -430,18 +434,9 @@ function ScheduledTasks "MapsToastTask", # This task checks for updates to maps which you have downloaded for offline use - "MapsUpdateTask", - - # Initializes Family Safety monitoring and enforcement - "FamilySafetyMonitor", - - # Synchronizes the latest settings with the Microsoft family features service - "FamilySafetyRefreshTask", - - # XblGameSave Standby Task - "XblGameSaveTask" + # Disabling this task will prevent Windows from notifying you of updated maps + "MapsUpdateTask" ) - #endregion Variables #region XAML Markup # The section defines the design of the upcoming dialog box diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 index aebc215e..e423f11b 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 @@ -386,19 +386,21 @@ function ScheduledTasks Add-Type -AssemblyName PresentationCore, PresentationFramework - #region Variables # Initialize an array list to store the selected scheduled tasks $SelectedTasks = New-Object -TypeName System.Collections.ArrayList($null) # The following tasks will have their checkboxes checked [string[]]$CheckedScheduledTasks = @( - # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + # Gathers Win32 application data for App Backup scenario "MareBackup", # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program "Microsoft Compatibility Appraiser", - # Updates compatibility database + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + "Microsoft Compatibility Appraiser Exp", + + # Scans startup entries and raises notification to the user if there are too many startup entries. "StartupAppTask", # This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program @@ -408,6 +410,8 @@ function ScheduledTasks "Consolidator", # The USB CEIP (Customer Experience Improvement Program) task collects Universal Serial Bus related statistics and information about your machine and sends it to the Windows Device Connectivity engineering group at Microsoft + # The information received is used to help improve the reliability, stability, and overall functionality of USB in Windows + # If the user has not consented to participate in Windows CEIP, this task does not do anything "UsbCeip", # The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program @@ -417,18 +421,9 @@ function ScheduledTasks "MapsToastTask", # This task checks for updates to maps which you have downloaded for offline use - "MapsUpdateTask", - - # Initializes Family Safety monitoring and enforcement - "FamilySafetyMonitor", - - # Synchronizes the latest settings with the Microsoft family features service - "FamilySafetyRefreshTask", - - # XblGameSave Standby Task - "XblGameSaveTask" + # Disabling this task will prevent Windows from notifying you of updated maps + "MapsUpdateTask" ) - #endregion Variables #region XAML Markup # The section defines the design of the upcoming dialog box 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 e7b64b79..eeabdace 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 @@ -396,19 +396,21 @@ function ScheduledTasks Add-Type -AssemblyName PresentationCore, PresentationFramework - #region Variables # Initialize an array list to store the selected scheduled tasks $SelectedTasks = New-Object -TypeName System.Collections.ArrayList($null) # The following tasks will have their checkboxes checked [string[]]$CheckedScheduledTasks = @( - # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + # Gathers Win32 application data for App Backup scenario "MareBackup", # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program "Microsoft Compatibility Appraiser", - # Updates compatibility database + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + "Microsoft Compatibility Appraiser Exp", + + # Scans startup entries and raises notification to the user if there are too many startup entries. "StartupAppTask", # This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program @@ -418,6 +420,8 @@ function ScheduledTasks "Consolidator", # The USB CEIP (Customer Experience Improvement Program) task collects Universal Serial Bus related statistics and information about your machine and sends it to the Windows Device Connectivity engineering group at Microsoft + # The information received is used to help improve the reliability, stability, and overall functionality of USB in Windows + # If the user has not consented to participate in Windows CEIP, this task does not do anything "UsbCeip", # The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program @@ -427,18 +431,9 @@ function ScheduledTasks "MapsToastTask", # This task checks for updates to maps which you have downloaded for offline use - "MapsUpdateTask", - - # Initializes Family Safety monitoring and enforcement - "FamilySafetyMonitor", - - # Synchronizes the latest settings with the Microsoft family features service - "FamilySafetyRefreshTask", - - # XblGameSave Standby Task - "XblGameSaveTask" + # Disabling this task will prevent Windows from notifying you of updated maps + "MapsUpdateTask" ) - #endregion Variables #region XAML Markup # The section defines the design of the upcoming dialog box