Get-ComSecurityDescriptor

Gets a WMI Win32_SecurityDescriptor default security or security limits object for COM Access or Launch and Activation permissions.

Syntax

Get-ComSecurityDescriptor -Access -Limits [-AsComAccessRule] [<CommonParameters>]
Get-ComSecurityDescriptor -Access -Default [-AsComAccessRule] [<CommonParameters>]
Get-ComSecurityDescriptor -LaunchAndActivation -Limits [-AsComAccessRule] [<CommonParameters>]
Get-ComSecurityDescriptor -LaunchAndActivation -Default [-AsComAccessRule] [<CommonParameters>]

Description

There are four available security descriptors. Default security and security limits for Access Permissions and Launch and Activation Permissions. This method returns a Win32_SecurityDescriptor for the given area and security type.

The AsComAccessRule parameter will return a Carbon.Security.ComAccessRule object for each of the access control entries in the security descriptor's ACL.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
Access SwitchParameter

Returns a securty descriptor for one of the Access Permissions security types.

true false False
LaunchAndActivation SwitchParameter

Returns a security descriptor for one of the Launch and Activation Permissions security types.

true false False
Default SwitchParameter

Returns the default security descriptor.

true false False
Limits SwitchParameter

Returns the security limits descriptor.

true false False
AsComAccessRule SwitchParameter

Returns Carbon.Security.ComAccessRule objects instead of a security descriptor.

false false False

EXAMPLE 1

Get-ComSecurityDescriptor -Access -Default

Gets the default security descriptor for COM Access Permissions.

EXAMPLE 2

Get-ComSecurityDescriptor -Access -Limits

Gets the security limits descriptor for COM Access Permissions.

EXAMPLE 3

Get-ComSecurityDescriptor -LaunchAndActivation -Default

Gets the default security descriptor for COM Launch and Activation Permissions.

EXAMPLE 4

Get-ComSecurityDescriptor -LaunchAndActivation -Limits

Gets the security limits descriptor for COM Launch and Activation Permissions.

EXAMPLE 5

Get-ComSecurityDescriptor -Access -Default -AsComAccessRule

Returns a Carbon.Security.ComAccessRule object for each of the access control entries in the Access Permissions's default security descriptor.