Set-CMSecurityScope

Sets a security scope.

Syntax

Set-CMSecurityScope
   -Id <String>
   [-NewName <String>]
   [-Description <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMSecurityScope
   -InputObject <IResultObject>
   [-NewName <String>]
   [-Description <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMSecurityScope
   -Name <String>
   [-NewName <String>]
   [-Description <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-CMSecurityScope cmdlet changes the configuration settings of a security scope.

Examples

Example 1: Get a security scope and update its name

PS C:\> $Scope = Get-CMSecurityScope -Name "Scope"
PS C:\> Set-CMSecurityScope -InputObject $Scope -NewName "newScope"

The first command gets the security scope object named Scope and stores the object in the $Scope variable.

The second command changes the name of the security scope stored in $Scope to newScope.

Example 2: Pass a security scope through the pipeline and update its name

PS C:\> Get-CMSecurityScope -Name "Scope" | Set-CMSecurityScope -NewName "newScope"

This command gets the security scope object named Scope and uses the pipeline operator to pass the object to Set-CMSecurityScope, which changes the name of the security scope to newScope.

Required Parameters

-Id

Specifies the ID of a security scope.

Type:String
Aliases:CategoryId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies a security scope object. To obtain a security scope object, use the Get-CMSecurityScope cmdlet.

Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies the name of a security scope.

Type:String
Aliases:CategoryName
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Description

Specifies a description for the security scope.

Type:String
Aliases:CategoryDescription
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

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

Specifies a new name for the security scope.

Type:String
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False