API Reference
Command
Add-CxFilePermissions
Adds file or directory permissions (append-only).
Examples
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
- File system path to the target resource.
- Entries FileAclEntry[]
- One or more access control entries (ACEs) to append to the target's DACL.
Outputs
System.Boolean