Get Rid of Windows 11 Settings Ads
Guide using PowerShell to take ownership of the key and then proceed with creating the subkey:
Step 1: Take Ownership of the Parent Registry Key
Open PowerShell as Administrator.
Take ownership of the parent key (ActivatableClassId):
powershell
Set-Location 'HKLM:\SOFTWARE\Microsoft\WindowsRuntime\'
Start-Process "powershell" -ArgumentList "Set-ACL -Path 'HKLM:\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId' -AclObject (Get-Acl -Path 'HKLM:\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId')" -Verb runAs
This will launch another elevated PowerShell session to take ownership. It will flash blue then close.
Then the manual step
Open Registry Editor (regedit) as Administrator.
Navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId
Right-click on the ActivatableClassId key and select Permissions.
Click Advanced.
Change the Owner to your user account, as explained in the previous response.
Grant yourself Full Control.
Exit the advanced panel, then on the main panel click on your user and administrators, and click allow full control tick. Then click do it for both, then click apply then okay.
Step 2: Create the Registry Key and Set the Value
Once you have the appropriate permissions, go back to PowerShell and run the command to create the key and set the value:
powershell
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\ValueBanner.IdealStateFeatureControlProvider' -Force
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\ValueBanner.IdealStateFeatureControlProvider' -Name 'ActivationType' -Value 0 -Type DWord
Then reboot.
The Ads should be gone.