Grants COM access permissions.
Grant-ComPermissions -Identity <String> -Access -Limits -Deny [-Local] [-Remote] [<CommonParameters>]
Grant-ComPermissions -Identity <String> -Access -Default -Deny [-Local] [-Remote] [<CommonParameters>]
Grant-ComPermissions -Identity <String> -Access -Limits -Allow [-Local] [-Remote] [<CommonParameters>]
Grant-ComPermissions -Identity <String> -Access -Default -Allow [-Local] [-Remote] [<CommonParameters>]
Grant-ComPermissions -Identity <String> -LaunchAndActivation -Limits -Deny [-LocalLaunch] [-RemoteLaunch] [-LocalActivation] [-RemoteActivation] [<CommonParameters>]
Grant-ComPermissions -Identity <String> -LaunchAndActivation -Default -Deny [-LocalLaunch] [-RemoteLaunch] [-LocalActivation] [-RemoteActivation] [<CommonParameters>]
Grant-ComPermissions -Identity <String> -LaunchAndActivation -Limits -Allow [-LocalLaunch] [-RemoteLaunch] [-LocalActivation] [-RemoteActivation] [<CommonParameters>]
Grant-ComPermissions -Identity <String> -LaunchAndActivation -Default -Allow [-LocalLaunch] [-RemoteLaunch] [-LocalActivation] [-RemoteActivation] [<CommonParameters>]
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 modifying the permission after clicking the Edit Limits...
or Edit Default...
buttons under the Access Permissions
section.
You must set at least one of the LocalAccess
or RemoteAccess
switches.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Identity | String | true | false | ||
Access | SwitchParameter | Grants Access Permissions. | true | false | |
LaunchAndActivation | SwitchParameter | Grants Launch and Activation Permissions. | true | false | |
Default | SwitchParameter | Grants default security permissions. | true | false | |
Limits | SwitchParameter | Grants security limits permissions. | true | false | |
Allow | SwitchParameter | If set, allows the given permissions. | true | false | |
Deny | SwitchParameter | If set, denies the given permissions. | true | false | |
Local | SwitchParameter | If set, grants local access permissions. | false | false | |
Remote | SwitchParameter | If set, grants remote access permissions. | false | false | |
LocalLaunch | SwitchParameter | If set, grants local access permissions. | false | false | |
RemoteLaunch | SwitchParameter | If set, grants remote access permissions. | false | false | |
LocalActivation | SwitchParameter | If set, grants local access permissions. | false | false | |
RemoteActivation | SwitchParameter | If set, grants remote access permissions. | false | false |
Grant-ComPermissions -Access -Identity 'Users' -Allow -Default -Local
Updates access permission default security to allow the local Users
group local access permissions.
Grant-ComPermissions -LaunchAndActivation -Identity 'Users' -Limits -Deny -Local -Remote
Updates access permission security limits to deny the local Users
group local and remote access permissions.