This is a script to uninstall MS Teams
This script would fetch the current user logged in and then proceed with the uninstallation. Once it has uninstalled and deleted the folders would check for the Teams folder in the user profile in App Data. If the folder is found would send an email.
In the script, the only modification that needs to be done is replacing the email address and if required the Body of the email.
Uninstall Microsoft Teams has no reviews.
Doesn't remove the Teams Machine Wide Installer
Does this work properly?
It does but it's missing a step to remove the machine wide installer.
I added a step to fix that on my end, so it does remove it all. add a line for uninstallbyProductGUID(39AF0813-FA7B-4860-ADBE-93B9B214B914)
Note that the GUID can change for different versions of teams. Mine were all that one guid, you might have to check your systems and tweak the guid or if you have more, add another line for another version guid.
Hope this help!