< Back

Revoke-CComPermission

Sun Jan 12, 2020 11:03 pm

NAME Revoke-CComPermission



SYNOPSIS

Revokes COM Access or Launch and Activation permissions.





SYNTAX

Revoke-CComPermission -Identity <String> -Access -Limits [<CommonParameters>]



Revoke-CComPermission -Identity <String> -Access -Default [<CommonParameters>]



Revoke-CComPermission -Identity <String> -LaunchAndActivation -Limits [<CommonParameters>]



Revoke-CComPermission -Identity <String> -LaunchAndActivation -Default [<CommonParameters>]





DESCRIPTION

Calling this function is equivalent to opening Component Services (dcomcnfg), right-clicking `My Computer` under

Component Services > Computers, choosing `Properties`, going to the `COM Security` tab, and removing an identity

from the permissions window that opens after clicking the `Edit Limits...` or `Edit Default...` buttons under

`Access Permissions` or `Launch and Activation Permissions` section,





PARAMETERS

-Identity <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Access [<SwitchParameter>]

Revokes Access Permissions.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-LaunchAndActivation [<SwitchParameter>]

Revokes Launch and Activation Permissions.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Default [<SwitchParameter>]

Revokes default security permissions.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Limits [<SwitchParameter>]

Revokes security limits permissions.



Required? true

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:\\>Revoke-CComPermission -Access -Identity 'Users' -Default



Removes all default security COM access permissions for the local `Users` group.









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



PS C:\\>Revoke-CComPermission -LaunchAndActivation -Identity 'Users' -Limits



Removes all security limit COM access permissions for the local `Users` group.











RELATED LINKS

Get-CComPermission

Grant-CComPermission

Revoke-CComPermission