< Back

Get-CComSecurityDescriptor

Sun Jan 12, 2020 9:36 pm

NAME Get-CComSecurityDescriptor



SYNOPSIS

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

Activation permissions.





SYNTAX

Get-CComSecurityDescriptor -Access -Limits [-AsComAccessRule] [<CommonParameters>]



Get-CComSecurityDescriptor -Access -Default [-AsComAccessRule] [<CommonParameters>]



Get-CComSecurityDescriptor -LaunchAndActivation -Limits [-AsComAccessRule] [<CommonParameters>]



Get-CComSecurityDescriptor -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.





PARAMETERS

-Access [<SwitchParameter>]

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



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-LaunchAndActivation [<SwitchParameter>]

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



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Default [<SwitchParameter>]

Returns the default security descriptor.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Limits [<SwitchParameter>]

Returns the security limits descriptor.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-AsComAccessRule [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-CComSecurityDescriptor -Access -Default



Gets the default security descriptor for COM Access Permissions.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-CComSecurityDescriptor -Access -Limits



Gets the security limits descriptor for COM Access Permissions.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-CComSecurityDescriptor -LaunchAndActivation -Default



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









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-CComSecurityDescriptor -LaunchAndActivation -Limits



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









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Get-CComSecurityDescriptor -Access -Default -AsComAccessRule



Returns a `Carbon.Security.ComAccessRule` object for each of the access control entries in the Access

Permissions's default security descriptor.











RELATED LINKS

http://msdn.microsoft.com/en-us/library ... 94402.aspx

Get-CComPermission