It's possible that the preloaded version of Microsoft 365 is part of the Windows 11 image and cannot be removed using PowerShell. In this case, you may need to create a custom Windows 11 image that does not include the preloaded version of Microsoft 365.
However, if you want to remove the preloaded version of Microsoft 365 using PowerShell, you can try the following steps:
- Open PowerShell as an administrator on the Windows 11 machine.
- Run the command "Get-AppxPackage -AllUsers" to list all installed apps for all users on the machine.
- Find the preloaded version of Microsoft 365 in the list. You can use the "Name" or "PackageFullName" properties to identify it. For example, it may be named "Microsoft.Office.Desktop" or "Microsoft.MicrosoftOfficeHub".
- Run the command "Remove-AppxPackage -Package <PackageFullName>" to remove the preloaded version of Microsoft 365. Replace "<PackageFullName>" with the actual PackageFullName value for the app you want to remove.
Note that removing the preloaded version of Microsoft 365 may cause compatibility issues with other apps or features in Windows 11. Also, keep in mind that removing the preloaded version of Microsoft 365 may not be officially supported by Microsoft and may void any warranties or support agreements for the Windows 11 installation.