Get-CMObjectSecurityScope

Gets the security scope associated with a Configuration Manager object.

Syntax

Get-CMObjectSecurityScope
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-Id <String>]
   -InputObject <IResultObject>
   [<CommonParameters>]
Get-CMObjectSecurityScope [-DisableWildcardHandling] [-ForceWildcardHandling] -InputObject 
 [-Name ] []

Description

The Get-CMObjectSecurityScope cmdlet gets the security scopes that are associated with a Microsoft System Center Configuration Manager object.

Examples

Example 1: Get security scopes for an application object

PS C:\> Get-CMApplication -Name "Application1" | Get-CMObjectSecurityScope

This command gets the application object named Application1 and uses the pipeline operator to pass the object to Get-CMObjectSecurityScope, which gets all security scopes associated with the application object.

Example 2: Get a security scope

PS C:\> Get-CMObjectSecurityScope -InputObject (Get-CMApplication -Name "Application1") -Name "Scope1"

This command gets the security scope named Scope1 that is associated with the application object named Application1.

Required Parameters

-InputObject

Specifies a Configuration Manager object that is associated with a security scope.

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

Optional Parameters

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

Specifies the ID of a security scope that is associated with a Configuration Manager object.

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

Specifies the name of a security scope that is associated with a Configuration Manager object.

Type:String
Aliases:CategoryName
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IResultObject[]#SMS_SecuredCategory