Get-CMSecurityScope

Gets a security scope.

Syntax

Get-CMSecurityScope
   -Id <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMSecurityScope
   [-Name <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMSecurityScope cmdlet gets one or more security scopes in Microsoft System Center Configuration Manager. You can get a security scope by its name or ID. If you don't provide any parameters, all security scopes are returned.

Examples

Example 1: Get a security scope by name

PS C:\> Get-CMSecurityScope -Name "Scope"

This command gets the security scope named Scope.

Example 2: Get a security scope by using a wildcard

PS C:\> Get-CMSecurityScope -Name "S*"

This command gets all security scope objects that have a name beginning with "S".

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

Optional Parameters

-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
-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