ConvertFrom-CIPolicy

Converts an .xml file that contains a Code Integrity policy into binary format.

Syntax

ConvertFrom-CIPolicy
                [-XmlFilePath] <String>
                [-BinaryFilePath] <String>
                [<CommonParameters>]

Description

The ConvertFrom-CIPolicy cmdlet converts an .xml file that contains a Code Integrity policy into binary format. You can install the binary version of a policy on a computer.

Examples

Example 1: Converts a policy

PS C:\> ConvertFrom-CIPolicy -XmlFilePath ".\Policy03.xml" -BinaryFilePath "Policy03.bin"
C:\Policies\Policy03.bin

This command converts the policy in Policy03.xml into a binary named Policy03.bin. The console displays the full path of the binary file.

Parameters

-BinaryFilePath

Specifies the path for the output converted policy binary file.

Type:String
Aliases:bin
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-XmlFilePath

Specifies the path of the .xml policy file that this cmdlet converts.

Type:String
Aliases:xml
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False