SOLVED

Cannot install Teams - Access denied

%3CLINGO-SUB%20id%3D%22lingo-sub-1546216%22%20slang%3D%22en-US%22%3ECannot%20install%20Teams%20-%20Access%20denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1546216%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20re%20install%20teams%20since%20my%20first%20version%20threw%20some%20errors.%20I%20am%20getting%20this%20error%20below%20but%20i%20cannot%20remove%20this%20folder%20since%20it%20says%20access%20denied.%20I%20tried%20with%20admin%20privileges%20and%20still%20it%20does%20not%20allow%20me%20to%20remove%20it.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESystem.UnauthorizedAccessException%3A%20Access%20to%20the%20path%20'C%3A%5CUsers%5CSMILU%5CAppData%5CLocal%5CMicrosoft%5CTeams%5Ccurrent'%20is%20denied.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20the%20only%20user%20in%20my%20PC%20and%20i%20am%20the%20administrator.%20But%20this%20folder%20is%20inaccessible%20after%20i%20removed%20my%20old%20teams.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1546216%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMessaging%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1546315%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20install%20Teams%20-%20Access%20denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1546315%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F740060%22%20target%3D%22_blank%22%3E%40smilu%3C%2FA%3E%26nbsp%3BHi%2C%20I%20guess%20you%20have%20something%20installed%20on%20your%20computer%20that%20is%20blocking%20the%20removal%20of%20this.%20Check%20this%20thread%20where%20they%20had%20a%20similar%20error%20when%26nbsp%3B%3CSPAN%3EWebroot's%20Realtime%20Shield%20protection%20was%20running.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-teams%2Fteams-appdata-folder-inaccessible-after-fall-creators-update%2Fm-p%2F118540%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-teams%2Fteams-appdata-folder-inaccessible-after-fall-creators-update%2Fm-p%2F118540%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%20close%20all%20other%20Office%20applications%20like%20Outlook%20and%20make%20sure%20that%20outlook.exe%20is%20not%20running%26nbsp%3B%20with%20Task%20Manager.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

I am trying to re install teams since my first version threw some errors. I am getting this error below but i cannot remove this folder since it says access denied. I tried with admin privileges and still it does not allow me to remove it. 

 

System.UnauthorizedAccessException: Access to the path 'C:\Users\SMILU\AppData\Local\Microsoft\Teams\current' is denied.

 

I am the only user in my PC and i am the administrator. But this folder is inaccessible after i removed my old teams. 

2 Replies
Highlighted
Best Response confirmed by ThereseSolimeno (Microsoft)
Solution

@smilu Hi, I guess you have something installed on your computer that is blocking the removal of this. Check this thread where they had a similar error when Webroot's Realtime Shield protection was running.

 

https://techcommunity.microsoft.com/t5/microsoft-teams/teams-appdata-folder-inaccessible-after-fall-...

 

Also close all other Office applications like Outlook and make sure that outlook.exe is not running  with Task Manager.

Highlighted

 

Remove the PreventInstallationFromMsi entry in the registry :

HKEY_CURRENT_USER\Software\Microsoft\Office\Teams

@smilu