PowerCLI Reference

Set-CIAccessControlRule

Synopsis

This cmdlet modifies the specified access control rule.

Syntax

Set-CIAccessControlRule [-AccessLevel] <AccessLevel> -AccessControlRule <CIAccessControlRule[]> [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Get-CIAccessControlRule
New-CIAccessControlRule
Remove-CIAccessControlRule

Detailed Description

This cmdlet modifies the specified access control rule.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
AccessLevelAccessLevelSpecifies a new access level for the access control rule that you want to modify. This parameter accepts Read, ReadWrite, and FullControl values.trueFalse
AccessControlRuleCIAccessControlRule[]Specifies the access control rule that you want to modify.trueTrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

Zero or more modified CIAccessControlRule objects

Notes

Examples

-------------------------- Example 1 --------------------------

$myRule = Get-CIAccessControlRule -Entity 'MyCatalog' -User 'MyUser'
Set-CIAccessControlRule -AccessControlRule $myRule -AccessLevel "FullControl"

Provides the MyUser user with full control access to the MyCatalog catalog.


Copyright © VMware, Inc. All rights reserved.