Export-CMSecurityRole

Exports a security role to an XML file.

Syntax

Export-CMSecurityRole
      [-Confirm]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      -Path <String>
      -Role <IResultObject>
      [-WhatIf]
      [<CommonParameters>]
Export-CMSecurityRole [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling] -Path 
 -RoleId  [-WhatIf] []
Export-CMSecurityRole [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling] -Path 
 -RoleName  [-WhatIf] []

Description

The Export-CMSecurityRole cmdlet exports a security role configuration from Microsoft System Center Configuration Manager to an XML file.

Examples

Example 1: Export a security role

PS C:\>Export-CMSecurityRole -Path "\\Contoso01\Export\Sec_Roles\Security_Manager" -RoleId "SMS000CR"

This command exports the security role named SMS000CR to the file named Security_Manager.

Required Parameters

-Path

Specifies the path to which you export the XML file for the security role.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Role
Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-RoleId

Specifies the ID of a role.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RoleName
Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False