ChrisTitusTech / winutil

Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates
MIT License
21.28k stars 1.31k forks source link

[Req] Windows 11- Disable Start Menu Backup to One Drive Upsell #2512

Closed JustArion closed 1 month ago

JustArion commented 1 month ago

Is your feature request related to a problem? Please describe. Every 3-4 weeks or so I get an annoying "Important Account Notification" in the start menu, when clicking on it, its the sales team!. They bring you a One Drive backing up your Documents / Music / Pictures / Videos upsell.

The notification would appear here as an orange dot. 87c6c623-d472-4da8-aa94-ae49891c65de_03-08-2024

Describe the solution you'd like Add / modify options in winutil to permanently disable the Backup to One Drive upsell via the Start Menu

Describe alternatives you've considered The only 2 options are to "Start backup" which directs you to the following window

f4f3e630-082d-40b7-8a33-bed20fc6b890_03-08-2024

(This is the same as opening One Drive's "Settings", going to "Sync and backup" and then clicking "Manage backup")

Additional context Using ProcMon I've discovered that "StatMenuExperienceHost.exe" (The Start Menu) sets a registry key when dismissing or interacting with the nofitication. The key path is Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RulesEngine\StateManager and the Value is Data so the full path is Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RulesEngine\StateManager\Data

The key can be queried by executing this in a terminal reg query 'HKCU\Software\Microsoft\Windows\CurrentVersion\RulesEngine\StateManager\' /v Data

It returns a JSON object that should roughly show the same data as mine:

{
    "Version": 2,
    "States": [
        {
            "RuleId": "42",
            "Client": "*",
            "ImpressionCount": 5,
            "ImpressionDate": "2024-08-03T17:23:54Z",
            "DismissCount": 0,
            "DismissDate": "",
            "InvokeCount": 4,
            "InvokeDate": "2024-08-01T08:23:10Z",
            "SnoozeDate": "2024-08-03T17:23:54Z"
        },
        {
            "RuleId": "42",
            "Client": "startmenu",
            "ImpressionCount": 5,
            "ImpressionDate": "2024-08-03T17:23:54Z",
            "DismissCount": 0,
            "DismissDate": "",
            "InvokeCount": 4,
            "InvokeDate": "2024-08-01T08:23:10Z",
            "SnoozeDate": "2024-08-03T17:23:54Z"
        }
    ],
    "UserContext": "US;en-US;en-US",
    "LastAlertTimestamps": [
        {
            "Client": "*",
            "Timestamp": "2024-08-03T17:23:54Z"
        },
        {
            "Client": "startmenu",
            "Timestamp": "2024-08-03T17:23:54Z"
        }
    ]
}

My best guess is to change the startmenu client timestamps to something absolute into the future (eg. 100 years into the future) and the InvokeDate and SnoozeDate, which should in theory (untested) remove the notification permanently.

JustArion commented 1 month ago

0f30ed7e-8094-4b7c-8ca0-79efc85dbe2a_03-08-2024

The ProcMon when clicking the dismiss notification

Disabling some notifciations via GPEdit might work instead of all this (The key is DisableAccountNotifications)

github-actions[bot] commented 1 month ago

This issue was marked as stale because it has been inactive for 7 days

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 7 days since it was marked as stale