TestimoX

API Reference

Command

Add-CxFilePermissions

Namespace ComputerX.PowerShell
Inputs
ComputerX.Acl.FileAclEntry[]
Outputs
System.Boolean

Adds file or directory permissions (append-only).

Examples

Authored help example

Example 1


$ace = [ComputerX.Acl.FileAclEntry]@{ IdentityName='CONTOSO\\Ops'; Rights=[System.Security.AccessControl.FileSystemRights]::Modify; AccessType='Allow' }
Add-CxFilePermissions -Path 'C:\\Data' -Entries $ace
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Add-CxFilePermissions -Path <string> -Entries <FileAclEntry[]> [<CommonParameters>]
#

Parameters

Path string requiredposition: 0pipeline: false
File system path to the target resource.
Entries FileAclEntry[] requiredposition: 1pipeline: true (ByValue)
One or more access control entries (ACEs) to append to the target's DACL.

Outputs

System.Boolean