テキスト ファイル のレジストリ値 textfiles (excel\security\fileblock)ユーザーHKCU\software\policies\microsoft\office\16.0\excel\security\fileblock
- ポリシー ID
- L_TextFiles
- 適用対象
- ユーザーの構成
- サポートされるバージョン
- Windows Server 2008 R2、Windows 7 またはそれ以降
- 出典
- Microsoft 365 Apps / Office Administrative Templates (バージョン 5568.1000)
- カテゴリ
- Microsoft Excel 2016 › Excel のオプション › セキュリティ › セキュリティ センター › ファイル制限機能の設定
レジストリ
textfiles
REG_DWORDユーザー- 有効時の値
- オプションの値に依存
- 要素
- ファイル制限機能の設定:
| 項目 | 保存される値 |
|---|---|
| ブロックしない | 0 |
| 保存をブロックする | 1 |
| 開く/保存をブロックする (オープン ポリシーを使用) | 2 |
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\security\fileblock] ; 選択項目 (1 つだけ使用) ; ブロックしない "textfiles"=dword:00000000 ; 保存をブロックする "textfiles"=dword:00000001 ; 開く/保存をブロックする (オープン ポリシーを使用) "textfiles"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用) :: ブロックしない reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\fileblock" /v "textfiles" /t REG_DWORD /d 0 /f :: 保存をブロックする reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\fileblock" /v "textfiles" /t REG_DWORD /d 1 /f :: 開く/保存をブロックする (オープン ポリシーを使用) reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\fileblock" /v "textfiles" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Force | Out-Null # 選択項目 (1 つだけ使用) # ブロックしない New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Name 'textfiles' -PropertyType DWord -Value 0 -Force | Out-Null # 保存をブロックする New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Name 'textfiles' -PropertyType DWord -Value 1 -Force | Out-Null # 開く/保存をブロックする (オープン ポリシーを使用) New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Name 'textfiles' -PropertyType DWord -Value 2 -Force | Out-Null