ConvertFrom-CIPolicy
Converts an .xml file that contains a Code Integrity policy into binary format.
Syntax
Default (Default)
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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | bin |
Parameter sets
(All)
Position: | 2 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-XmlFilePath
Specifies the path of the .xml policy file that this cmdlet converts.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | xml |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.