安全性層級 的登錄值 level使用者HKCU\software\policies\microsoft\office\16.0\ms project\security

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

登錄

level

REG_DWORD使用者
啟用時的值
取決於選項值
元素
安全性層級
選項
項目儲存的值
低 (不建議使用)1
中2
高3
更高4
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 選項 (只使用其中一個)
; 低 (不建議使用)
"level"=dword:00000001
; 中
"level"=dword:00000002
; 高
"level"=dword:00000003
; 更高
"level"=dword:00000004
CMD
:: 選項 (只使用其中一個)

:: 低 (不建議使用)
reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "level" /t REG_DWORD /d 1 /f
:: 中
reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "level" /t REG_DWORD /d 2 /f
:: 高
reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "level" /t REG_DWORD /d 3 /f
:: 更高
reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "level" /t REG_DWORD /d 4 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Force | Out-Null

# 選項 (只使用其中一個)
# 低 (不建議使用)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'level' -PropertyType DWord -Value 1 -Force | Out-Null
# 中
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'level' -PropertyType DWord -Value 2 -Force | Out-Null
# 高
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'level' -PropertyType DWord -Value 3 -Force | Out-Null
# 更高
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'level' -PropertyType DWord -Value 4 -Force | Out-Null