Script_ExcludeExplicitO365E.../disable_Outlook_ExcludeExpl...

18 lines
1.4 KiB
PowerShell

# Désactiver ExcludeExplicitO365Endpoint dans Outlook
# Ajout de la clé de registre pour l'architecture 32 bits
New-Item -Path "HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" -Name "ExcludeExplicitO365Endpoint" -Value 1 -PropertyType DWORD -Force | Out-Null
# Ajout de la clé de registre pour l'architecture 64 bits
New-Item -Path "HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" -Name "ExcludeExplicitO365Endpoint" -Value 1 -PropertyType DWORD -Force | Out-Null
# Ajout de la clé de registre de stratégie de groupe pour l'architecture 32 bits
New-Item -Path "HKCU:\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover" -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover" -Name "ExcludeExplicitO365Endpoint" -Value 1 -PropertyType DWORD -Force | Out-Null
# Ajout de la clé de registre de stratégie de groupe pour l'architecture 64 bits
New-Item -Path "HKCU:\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover" -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover" -Name "ExcludeExplicitO365Endpoint" -Value 1 -PropertyType DWORD -Force | Out-Null