Forum Discussion
Hossam_RIAD
Jun 12, 2020Copper Contributor
Skype add-in gets disabled every time logging to teams
Hi, Teams on another tenant and skype is on-prem every time log in teams through application Skype add-in gets disabled As IM Provider and Skype add-in registry value changed : HKEY_CURRENT_USE...
Jens_St
Jul 11, 2022Copper Contributor
I've written a small PowerShell script that adds DENY SetValue for the current user to this registry key's ACLs. After running it, Teams (running in user context) won't be able to change the value and it'll persistently remain at 3 (enabled in Outlook). Feel free to try, modify for the IMProvider key, and distribute.
$regPath = 'Registry::HKCU\Software\Microsoft\Office\Outlook\Addins\UCAddin.LyncAddin.1'
Set-ItemProperty $regPath -Name LoadBehavior -Value 3
$acl = Get-Acl $regPath
$acl.Access | FT *
$idRef = [System.Security.Principal.NTAccount]([System.Security.Principal.WindowsIdentity]::GetCurrent().Name)
$regRights = [System.Security.AccessControl.RegistryRights]::SetValue
$inhFlags = [System.Security.AccessControl.InheritanceFlags]::None
$prFlags = [System.Security.AccessControl.PropagationFlags]::None
$acType = [System.Security.AccessControl.AccessControlType]::Deny
$rule = New-Object System.Security.AccessControl.RegistryAccessRule ($idRef, $regRights, $inhFlags, $prFlags, $acType)
$acl.AddAccessRule($rule)
$acl | Set-Acl -Path $regPath
$acl = Get-Acl $regPath
$acl.Access | FT *
- TorstenSApr 10, 2024Copper ContributorTeams Version 24074.2320.2799.6852 did fix this for us (Outlook 2016, Skype for Business 2016))