This the most ridiculous, convoluted, too many steps answer that could be given. Plus, the answer states, that the codes may not work properly and you have to enter them manually - what a stupid answer!!! Just tell us how to get rid of f___ing Outlook permanently and Microsoft should not be allowed to let it automatically take over your device - let's get some PRIVACY regulations petitions started Microsoft customers.
THERE IS NO REASON THAT WE SHOULD NOT BE ABLE TO CHOOSE TO ELIMINATE OUTLOOK, EXCEPT FOR THE FACT THAT MICROSOFT WANTS COMPLETE CONTROL OVER OUR EVERY MOVE!!!
Dear Aetherum,
Thank you for your patience and cooperation.
First of all, please understand that starting from 2024, new Windows 11 devices will come pre installed with new Outlook as the default email application. Reference: Outlook for Windows: The Future of Mail, Calendar, and People on Windows 11 - Microsoft Support
Currently, if you wish to continue using Mail and Calendar without automatically redirecting to New Outlook, additional settings are required. Please refer to the following steps:
Note: The highlighted area is the current user name (# comment bar can be deleted)
1.Replace the YOURUSERNAME with actual username of your PC.
2.Select all the codes below and copy them.
3.Open PowerShell with administrator privilege, you can search PowerShell in search bar, right-click it and choose to run with administrator.
4.Once PowerShell is opened, paste the codes into it, and press enter.
Define the folder path to operate on
$folderPath = "C:\Users\YOURUSERNAME\AppData\Local\Packages\microsoft.windowscommunicationsapps_8wekyb3d8bbwe\LocalState\Migration"
Define the path of the file to delete
$fileToDelete = "$folderPath\settings.json"
1. Delete the specified file (if it exists)
if (Test-Path -Path $fileToDelete) {
Remove-Item -Path $fileToDelete -Force
Write-Host "File $fileToDelete has been deleted."
} else {
Write-Host "File $fileToDelete does not exist."
}
Get the username of the current logged-in user
$currentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
2. Get the Access Control List (ACL) of the folder
$acl = Get-Acl -Path $folderPath
Define a new access rule to deny write access for the current user
$denyWriteRule = New-Object System.Security.AccessControl.FileSystemAccessRule($currentUser, "Write", "Deny")
Add the deny write access rule to the folder's ACL
$acl.AddAccessRule($denyWriteRule)
Apply the modified ACL to the folder
Set-Acl -Path $folderPath -AclObject $acl
Output the result of the operation
Write-Host "Write access denied for $currentUser on $folderPath"
The code performs two actions. You can also perform these actions manually if your code does not perform them correctly.
- deletes the settings.json file inside C:\Users\YOURUSERNAME\AppData\Local\Packages\microsoft.windowscommunicationsapps_8wekyb3d8bbwe\LocalState\Migration
2. Add a deny write rule to the Migration folder security permissions.
Hope this help you, please feel free to let me know how it goes. If there is any deviation in my understanding, please forgive me and provide me with more details. I am more than happy to continue to help you.
Best Regards,
Addie.C - MSFT | Microsoft Community Support Specialist