Export (0) Print
Expand All
Expand Minimize

Set-CMSecurityScope

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

Set-CMSecurityScope

Changes configuration settings of a security scope.

Syntax

Parameter Set: SetById
Set-CMSecurityScope -Id <String[]> [-Description <String> ] [-NewName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetByName
Set-CMSecurityScope -Name <String[]> [-Description <String> ] [-NewName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetByValue
Set-CMSecurityScope -InputObject <IResultObject> [-Description <String> ] [-NewName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Set-CMSecurityScope cmdlet changes configuration settings of a security scope. You can use this cmdlet to change the name and description of a security scope.

Parameters

-Description<String>

Specifies a description of a security scope.


Aliases

CategoryDescription

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Id<String[]>

Specifies an array of IDs of security scopes.


Aliases

CategoryId

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-InputObject<IResultObject>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String[]>

Specifies an array of names of security scopes.


Aliases

CategoryName

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

true

-NewName<String>

Specifies a new name for the security scope.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Change the settings of a security scope by using an ID

This command renames the security scope that has the ID CM200001. The command changes the name to ScopeT03 and adds a description to the security scope.


PS C:\> Set-CMSecurityScope -Id "CM200001" -NewName "ScopeT03" -Description "Security scope for team 3."

Example 2: Change the settings of a security scope by using a name

This command renames the security scope named ScopeT01. The command changes the name to ScopeT03 and adds a description to the security scope.


PS C:\> Set-CMSecurityScope -Name "ScopeT01" -NewName "ScopeT03" -Description "Security scope for team 3."

Example 3: Change the settings of a security scope by using an object variable

The first command gets the security scope that has the ID CM200001 and stores it in the $Sscope variable.

The second command renames the security scope for the object stored in $Sscope. The command changes the name to ScopeT03 and adds a description to the security scope.


PS C:\> $Sscope = Get-CMSecurityScope -Id "CM200001"
PS C:\> Set-CMSecurityScope -Inputobject $Sscope -NewName "ScopeT03" -Description "Security scope for team 3."

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft