Permitir combinação de política e locais de usuário: valor do Registro allow user locationsUsuárioHKCU\software\policies\microsoft\office\16.0\common\security\trusted locations

ID da política
L_Allowmixofpolicyanduserlocations
Escopo
Configuração do Usuário
Compatível com
Windows Server 2008 R2 ou Windows 7
Fonte
Microsoft 365 Apps / Office Administrative Templates (versão 5568.1000)
Categoria
Microsoft Office 2016 › Configurações de Segurança › Central de Confiabilidade

Registro

allow user locations

REG_DWORDUsuário
Valor habilitado
1
Valor desabilitado
0
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\security\trusted locations]

; Opções (use apenas uma)
; Habilitada
"allow user locations"=dword:00000001
; Desabilitada
"allow user locations"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Habilitada
reg add "HKCU\software\policies\microsoft\office\16.0\common\security\trusted locations" /v "allow user locations" /t REG_DWORD /d 1 /f
:: Desabilitada
reg add "HKCU\software\policies\microsoft\office\16.0\common\security\trusted locations" /v "allow user locations" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security\trusted locations' -Force | Out-Null

# Opções (use apenas uma)
# Habilitada
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security\trusted locations' -Name 'allow user locations' -PropertyType DWord -Value 1 -Force | Out-Null
# Desabilitada
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security\trusted locations' -Name 'allow user locations' -PropertyType DWord -Value 0 -Force | Out-Null