< Back

Set-CIPolicyIdInfo

Thu Apr 04, 2019 5:41 am

NAME Set-CIPolicyIdInfo



SYNOPSIS

Modifies the name and ID of a Code Integrity policy.





SYNTAX

Set-CIPolicyIdInfo [-PolicyId <String>] [-PolicyName <String>] -FilePath <String> [<CommonParameters>]





DESCRIPTION

The Set-CIPolicyIdInfo cmdlet modifies the policy name and policy ID of a Code Integrity policy. Specify the .xml file of the policy to modify.

Event Tracing for Windows (ETW) events use the PolicyID and Name properties to identify which policy is currently running on a computer.





PARAMETERS

-FilePath <String>

Specifies the path of a Code Integrity policy .xml file.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-PolicyId [<String>]

Specifies the value for the PolicyID property. This string is not required to be a GUID.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-PolicyName [<String>]

Specifies the value for the Name property.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS











OUTPUTS











Example 1: Modify the ID and name of a policy



PS C:\\>Set-CIPolicyIdInfo -FilePath ".\\Policy03.xml" -PolicyId "CIP077" -PolicyName "CIPolicy03"



This command modifies the policy ID and the policy name for the policy stored in the Policy03.xml file.





Example 2: Modify the name of a policy



PS C:\\>Set-CIPolicyIdInfo -FilePath ".\\Policy03.xml" -PolicyName "CIPolicy77"



This command modifies only the policy name for the policy stored in the Policy03.xml file.







RELATED LINKS

Get-CIPolicyIdInfo





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Set-CIPolicySetting; noun=CIPolicySetting; verb=Set}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.

-- To download and install Help files for the module that includes this cmdlet, use Update-Help.

PSSnapIn :

alertSet :

description :

examples :

Synopsis :

Set-CIPolicySetting [-FilePath] <string> -Provider <string> -Key <string> -ValueName <string> -ValueType <string> -Value

<string> [<CommonParameters>]



Set-CIPolicySetting [-FilePath] <string> -Provider <string> -Key <string> -ValueName <string> -Delete [<CommonParameters>]



ModuleName : ConfigCI

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Set-CIPolicySetting

Category : Cmdlet

Component :

Role :

Functionality :