信任位置 #4 的登錄值 path 等 3 個 (ms project\security\trusted locations\location4)使用者HKCU\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4

原則 ID
L_TrustedLoc04
適用範圍
使用者設定
支援的作業系統
至少需要 Windows Server 2008 R2 或 Windows 7
來源
Microsoft 365 Apps / Office Administrative Templates (版本 5568.1000)
類別
Microsoft Project 2016 › Project 選項 › 安全性 › 信任中心

登錄

path

REG_EXPAND_SZ使用者
啟用時的值
取決於選項值
元素
路徑:
值類型
REG_EXPAND_SZ
可擴充字串 (REG_EXPAND_SZ)
true
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4]

; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>
; hex(2) 與 hex(7) 資料必須以十六進位 (UTF-16LE) 撰寫
"path"=hex(2):<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4" /v "path" /t REG_EXPAND_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4' -Name 'path' -PropertyType ExpandString -Value '<輸入值>' -Force | Out-Null

date

REG_SZ使用者
啟用時的值
取決於選項值
元素
日期:
值類型
REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4]

; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>
"date"="<輸入值>"
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4" /v "date" /t REG_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4' -Name 'date' -PropertyType String -Value '<輸入值>' -Force | Out-Null

description

REG_SZ使用者
啟用時的值
取決於選項值
元素
描述:
值類型
REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4]

; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>
"description"="<輸入值>"
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4" /v "description" /t REG_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4' -Name 'description' -PropertyType String -Value '<輸入值>' -Force | Out-Null

allowsubfolders

REG_DWORD使用者
已核取
1
未核取
0
元素
允許子資料夾:
值類型
REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4]

; 選項 (只使用其中一個)
; 已核取
"allowsubfolders"=dword:00000001
; 未核取
"allowsubfolders"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 已核取
reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4" /v "allowsubfolders" /t REG_DWORD /d 1 /f
:: 未核取
reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4" /v "allowsubfolders" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4' -Force | Out-Null

# 選項 (只使用其中一個)
# 已核取
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4' -Name 'allowsubfolders' -PropertyType DWord -Value 1 -Force | Out-Null
# 未核取
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security\trusted locations\location4' -Name 'allowsubfolders' -PropertyType DWord -Value 0 -Force | Out-Null