When you deploy your Windows 365 Cloud PC, you can use a Microsoft Gallery Image or a Custom Image from Azure. The Microsoft Gallery image is a good starting point for most deployments, as it’s already optimized for Cloud PC. In my scenario, I have leveraged the Windows 11 Enterprise + OS Optimizations – 22H2 gallery image.
Note – These steps are only applicable in situations where-in you are not using Microsoft Teams.
Microsoft Teams is an excellent collaboration tool if the organization leverages it.
Post the Cloud PC Provisioning, the end-users see the Chat Icon for MS Team and the Microsoft Teams applications are installed within the Apps & Features. In this scenario, I am not using Microsoft Teams hence I have decided to Disable the Icon & Uninstall MS Team from the Cloud PC fleet.
Disable Chat Icon – Intune
Let’s see how to disable the Chat Icon gracefully for all end-users using Microsoft Intune
- Login to the Microsoft Intune Portal – https://endpoint.microsoft.com/
- Go to Devices and then scroll down to Configuration Profiles
- Click on Create New Profile
- Select Platform – Windows 10 and later
- Profile type – Settings Catalog
- Enter a Name – Disable Win11ChatIcon
- Settings picker type – configure chat icon
- Category select – Experience
- Results select – Configure Chat Icon
- Set the value as disable
- Assign the policy to the AAD group – In my case, I have assigned to the “Win365-DeviceGroup”
Set the Configure Chat Icon – Disabled
After the sync-up, I noticed the Chat Icon from the taskbar disappeared on all Windows 365 Cloud PC devices.
Un-install MS Team – Scripts Intune
Within the Microsoft gallery image, you will notice the Microsoft Team is installed by default, and we want to uninstall the software using Powershell Scripts. A quick check within Apps & Features shows that Microsoft Teams is already installed.
- Login to the Microsoft Intune Portal – https://endpoint.microsoft.com/
- Go to Devices and then scroll down to Scripts
- Click on Add
- Select Platform – Windows 10 and later
- Enter a Name – Uninstall-MSTeams
- Upload the script – Snippet below
- No to the rest of the settings
- Assign to the policy to the AAD group – In my case I have assigned to the “Win365-DeviceGroup”
# Remove Teams Application
try {
$fetchteamsapp = @(Get-AppxPackage -name '*teams' -ErrorAction stop)
}
catch {
$ErrorMessage = $_.Exception.message
write-error ('Error getting the teams app ' + $ErrorMessage)
Exit
}
if ($fetchteamsapp -ne $null) {
$uninstallteamsapp = @(remove-appxpackage -package "MicrosoftTeams_22287.702.1670.9453_x64__8wekyb3d8bbwe" -ErrorAction stop)
}
else {
write-host 'Successfully un-install the MS Teams.'
exit
}
Note – Replace your MS Team version with whatever you have within your environment
I hope you will find this helpful information for disabling icon and uninstalling Microsoft teams using Intune + Powershell scripts. Please let me know if I have missed any steps or details, and I will be happy to update the post.
Thanks,
Aresh Sarkari