Powershell Invoke-WebRequest -OutFile C:\Intune\SetACL.exeĬ:\Intune\SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications" -ot reg -actn setowner -ownr "n:Everyone"Ĭ:\Intune\SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications" -ot reg -actn ace -ace "n:Everyone p:full" I use the below cmd file deployed within an app package deployed via Intune to all devices using the system account. REG ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v TaskbarMn /t REG_DWORD /d 0ĭelete SetACL from temp directory Powershell Remove-Item C:\Windows\Temp\SetACL.exe -recurse REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications" /v ConfigureChatAutoInstall /t REG_DWORD /d 0 /f Set Ownership of the Communications key C:\Windows\Temp\SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications" -ot reg -actn setowner -ownr "n:Everyone"Ĭ:\Windows\Temp\SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications" -ot reg -actn ace -ace "n:Everyone p:full"ĭisable Teams Reg Keys REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Chat" /f /v ChatIcon /t REG_DWORD /d 3 (You should upload your own SetACL.exe to Dropbox, add a "1" in place of the 0 of the "dl=" at the end of the URL) Powershell Invoke-WebRequest -OutFile C:\Windows\Temp\SetACL.exe Here is my script if anyone from Google is interested later.ĭownload SetACL from Dropbox to temp directory. I installed Windows 11 on my personal PC and was looking for a fast scriptable solution to remove Teams for good.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |