不在受保護檢視中開啟不安全位置的檔案 的登錄值 disableunsafelocationsinpv (powerpoint\security\protectedview)使用者HKCU\software\policies\microsoft\office\16.0\powerpoint\security\protectedview
- 原則 ID
- L_DoNotOpenFilesInUnsafeLocationsInProtectedView
- 適用範圍
- 使用者設定
- 支援的作業系統
- 至少需要 Windows Server 2008 R2 或 Windows 7
- 來源
- Microsoft 365 Apps / Office Administrative Templates (版本 5568.1000)
- 類別
- Microsoft PowerPoint 2016 › PowerPoint 選項 › 安全性 › 信任中心 › 受保護的檢視
登錄
disableunsafelocationsinpv
REG_DWORD使用者- 啟用時的值
- 1
- 停用時的值
- 0
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\powerpoint\security\protectedview] ; 選項 (只使用其中一個) ; 已啟用 "disableunsafelocationsinpv"=dword:00000001 ; 已停用 "disableunsafelocationsinpv"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已啟用 reg add "HKCU\software\policies\microsoft\office\16.0\powerpoint\security\protectedview" /v "disableunsafelocationsinpv" /t REG_DWORD /d 1 /f :: 已停用 reg add "HKCU\software\policies\microsoft\office\16.0\powerpoint\security\protectedview" /v "disableunsafelocationsinpv" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\security\protectedview' -Force | Out-Null # 選項 (只使用其中一個) # 已啟用 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\security\protectedview' -Name 'disableunsafelocationsinpv' -PropertyType DWord -Value 1 -Force | Out-Null # 已停用 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\security\protectedview' -Name 'disableunsafelocationsinpv' -PropertyType DWord -Value 0 -Force | Out-Null