Skip to content

Test CiPolicy

Violet edited this page Feb 24, 2024 · 6 revisions

Test-CiPolicy available parameters

Syntax

Test-CiPolicy
    [-XmlFile] <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.

Parameters

-XmlFile

The XML file to validate

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









C#


Clone this wiki locally