Get-CMObjectSecurityScope

Gets the security scope associated with a Configuration Manager object.

Syntax

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

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
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
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
-Id

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

Type:String
Aliases:CategoryId
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IResultObject[]#SMS_SecuredCategory