Tasks are critical if slack is less than or equal to: registry value show as critical if slackUserHKCU\software\policies\microsoft\office\16.0\ms project\options\calculation

Policy ID
L_PjCritIfLess
Scope
User Configuration
Supported on
At least Windows Server 2008 R2 or Windows 7
Source
Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
Category
Microsoft Project 2016 › Project Options › Calculation › Calculation options for 'Project1'

Registry

show as critical if slack

REG_DWORDUser
Enabled value
Depends on the option value
Element
Tasks are critical if slack is less than or equal to
Value type
REG_DWORD
Minimum value
0
Maximum value
9999
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\options\calculation]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"show as critical if slack"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKCU\software\policies\microsoft\office\16.0\ms project\options\calculation" /v "show as critical if slack" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\calculation' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\calculation' -Name 'show as critical if slack' -PropertyType DWord -Value '<enter value>' -Force | Out-Null