Alle vertrouwde locaties uitschakelen: registerwaarde alllocationsdisabled (excel\security\trusted locations)GebruikerHKCU\software\policies\microsoft\office\16.0\excel\security\trusted locations

Beleids-ID
L_DisableTrustedLoc
Bereik
Gebruikersconfiguratie
Ondersteund op
Minimaal Windows Server 2008 R2 of Windows 7
Bron
Microsoft 365 Apps / Office Administrative Templates (versie 5568.1000)
Categorie
Microsoft Excel 2016 › Opties voor Excel › Beveiliging › Vertrouwenscentrum › Vertrouwde locaties

Register

alllocationsdisabled

REG_DWORDGebruiker
Waarde bij ingeschakeld
1
Waarde bij uitgeschakeld
0
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opties (gebruik er maar één)
; Ingeschakeld
"alllocationsdisabled"=dword:00000001
; Uitgeschakeld
"alllocationsdisabled"=dword:00000000
CMD
:: Opties (gebruik er maar één)

:: Ingeschakeld
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\trusted locations" /v "alllocationsdisabled" /t REG_DWORD /d 1 /f
:: Uitgeschakeld
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\trusted locations" /v "alllocationsdisabled" /t REG_DWORD /d 0 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\trusted locations' -Force | Out-Null

# Opties (gebruik er maar één)
# Ingeschakeld
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\trusted locations' -Name 'alllocationsdisabled' -PropertyType DWord -Value 1 -Force | Out-Null
# Uitgeschakeld
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\trusted locations' -Name 'alllocationsdisabled' -PropertyType DWord -Value 0 -Force | Out-Null