API Reference
Command
Remove-CxFilePermission
Removes rights from an identity on a file/directory DACL.
Examples
Example 1
Remove-CxFilePermission -Path C:\\Data\\Report.txt -Identity DOMAIN\\Ops -Rights Write
Example 2
Remove-CxFilePermission -Path C:\\Data -Identity DOMAIN\\Ops -Rights Modify -MatchInheritance ContainerInherit, ObjectInherit
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
Remove-CxFilePermission -Path <string> -Identity <string[]> -Rights <ReadData> [-AccessType <Allow|Deny>] [-MatchInheritance <ContainerInherit|ObjectInherit|InheritOnly|NoPropagateInherit>] [<CommonParameters>]#Parameters
- Path string
- File system path to the target resource.
- Identity string[]
- Account or security identifier (SID) to apply.
- Rights FileSystemRights
- Access rights or permission mask to apply. Possible values: ReadData, ListDirectory, WriteData, CreateFiles, AppendData, CreateDirectories, ReadExtendedAttributes, WriteExtendedAttributes, ExecuteFile, Traverse, DeleteSubdirectoriesAndFiles, ReadAttributes, WriteAttributes, Delete, ReadPermissions, ChangePermissions, TakeOwnership, Synchronize, FullControl, Read, ReadAndExecute, Write, Modify
- Possible values:
ReadData,ListDirectory,WriteData,CreateFiles,AppendData,CreateDirectories,ReadExtendedAttributes,WriteExtendedAttributes,ExecuteFile,Traverse,DeleteSubdirectoriesAndFiles,ReadAttributes,WriteAttributes,Delete,ReadPermissions,ChangePermissions,TakeOwnership,Synchronize,FullControl,Read,ReadAndExecute,Write,Modify - AccessType AclAccessType
- Specifies whether access is Allowed or Denied. Possible values: Allow, Deny
- Possible values:
Allow,Deny - MatchInheritance AclInheritanceFlags
- Gets or sets the MatchInheritance parameter. Possible values: None, ContainerInherit, ObjectInherit, InheritOnly, NoPropagateInherit
- Possible values:
ContainerInherit,ObjectInherit,InheritOnly,NoPropagateInherit
Outputs
System.Boolean