CmdID / PowerShell / Cmdlets / New
New-CIPolicyRule
Generates Code Integrity policy rules for user mode code and drivers. Windows Server PowerShell reference
From the Windows Server PowerShell reference 12 parameters Its page in the reference
Parameters
-AllowFileNameFallbacksIndicates that files that do not have an OriginalFileName fall back in the following order:-AppIDSpecifies an app.-Deny, -dIndicates that this cmdlet creates deny rules instead of the default allow rules.-DriverFilePathSpecifies the path of a driver on which this cmdlet bases a rule.-DriverFiles, -dfSpecifies an array of DriverFile objects on which this cmdlet bases rules.-FallbackSpecifies an array of levels of detail for generated rules.-FilePathRuleSpecifies the path of a folder for generating a rule with level set to FilePath.-Level, -lSpecifies the primary level of detail for generated rules.-PackageSpecifies the packaged app (MSIX/Appx) to base the rule.-ScriptFileNames-SpecificFileNameLevelSpecifies the attribute of the file off which to base a file name rule.-UserWriteablePathsIndicates that this cmdlet includes files identified as user writeable in the policy.