Skip to content

Test-CiPolicy available parameters

Test-CiPolicy available parameters

Test-CiPolicy demo

Syntax

Test-CiPolicy
    -XmlFile <FileInfo>
    -CipFile <FileInfo>
    [<CommonParameters>]

Description

Tests a Code Integrity (WDAC) Policy XML file against the Schema file located at:

$Env:SystemDrive\Windows\schemas\CodeIntegrity\cipolicy.xsd

It returns a boolean value indicating whether the XML file is valid or not.

It can also be used to display the signer certificates used to sign a .CIP binary file.

Parameters

-XmlFile

The Code Integrity Policy XML file to test. Supports file picker GUI.

Type: FileInfo
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False


-CipFile

The binary Code Integrity Policy file to test for signers. Supports file picker GUI.

Type: FileInfo
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False