I am trying to figure out how to remove the directories called “Microsoft Teams” & “Teams” and everything in them. The paths are:
I found this works locally on my system:
Remove-Item -path c:\Users\username\AppData\Roaming\Microsoft Teams -Recurse Remove-Item -path c:\Users\username\AppData\Roaming\Teams -Recurse
What I’m not sure how to do, is remove the directories called “Microsoft Teams” & “Teams” as well AND since I’m going to use this remotely on other systems, I need the ‘username’ portion of the path in the C:\Users directory (user profile), to be a wildcard or something I’m thinking?
Thanks for any help/suggestions/resources y’all might offer.