信頼されていないソースからの Excel XLL アドインをブロックします のレジストリ値 blockxllfrominternetユーザーHKCU\software\policies\microsoft\office\16.0\excel\security

ポリシー ID
L_BlockXLLFromInternet
適用対象
ユーザーの構成
サポートされるバージョン
Windows Server 2016 以降または Windows 10 以降
出典
Microsoft 365 Apps / Office Administrative Templates (バージョン 5568.1000)
カテゴリ
Microsoft Excel 2016 › Excel のオプション › セキュリティ › セキュリティ センター

レジストリ

blockxllfrominternet

REG_DWORDユーザー
有効時の値
オプションの値に依存
要素
-
オプション
項目保存される値
ブロックする1
追加の警告を表示する0
許可する2
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

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

; 選択項目 (1 つだけ使用)
; ブロックする
"blockxllfrominternet"=dword:00000001
; 追加の警告を表示する
"blockxllfrominternet"=dword:00000000
; 許可する
"blockxllfrominternet"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用)

:: ブロックする
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "blockxllfrominternet" /t REG_DWORD /d 1 /f
:: 追加の警告を表示する
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "blockxllfrominternet" /t REG_DWORD /d 0 /f
:: 許可する
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "blockxllfrominternet" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# ブロックする
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'blockxllfrominternet' -PropertyType DWord -Value 1 -Force | Out-Null
# 追加の警告を表示する
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'blockxllfrominternet' -PropertyType DWord -Value 0 -Force | Out-Null
# 許可する
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'blockxllfrominternet' -PropertyType DWord -Value 2 -Force | Out-Null