Share via


Get-CMSecurityScope

Get-CMSecurityScope

Gets security scopes.

Syntax

Parameter Set: SearchByName
Get-CMSecurityScope [-Name <String[]> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMSecurityScope -Id <String[]> [ <CommonParameters>]

Detailed Description

The Get-CMSecurityScope cmdlet gets one or more security scopes in Microsoft System Center 2012 SP1 Configuration Manager.

Parameters

-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

-Name<String[]>

Specifies an array of names of security scopes.

Aliases

CategoryName

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

true

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

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: Get all security scopes

This command gets all the security scopes on the local computer.

PS C:\> Get-CMSecurityScope

Example 2: Get a security scope by using an ID

This command gets the security scope that has the ID CM100001.

PS C:\> Get-CMSecurityScope -Id "CM100001"

Example 3: Get security scopes by using a wild card

This command gets security scopes that have a display name that begins with the letter D.

PS C:\> Get-CMSecurityScope -Name D*

New-CMSecurityScope

Remove-CMSecurityScope

Remove-CMSecurityScopeFromAdministrativeUser

Set-CMSecurityScope