Set-CMSecurityScope

Sets a security scope.

Syntax

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

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
Required:True
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
Required:True
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
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
-Description

Specifies a description for the security scope.

Type:String
Aliases:CategoryDescription
Required:False
Position:Named
Default value:None
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
-NewName

Specifies a new name for the security scope.

Type:String
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