Get-CMObjectSecurityScope

SYNOPSIS

Gets the security scope associated with a Configuration Manager object.

SYNTAX

FilterByName (Default)

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

FilterById

Get-CMObjectSecurityScope -InputObject <IResultObject> [-Id <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.

PARAMETERS

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

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
Parameter Sets: FilterById
Aliases: CategoryId

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InputObject

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

Type: IResultObject
Parameter Sets: (All)
Aliases: 

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

-Name

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

Type: String
Parameter Sets: FilterByName
Aliases: CategoryName

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

IResultObject[]#SMS_SecuredCategory

NOTES

Add-CMObjectSecurityScope

Get-CMApplication

Remove-CMObjectSecurityScope

Set-CMObjectSecurityScope