Set SimpleAcl - PPOSHGROUP/PPoShTools GitHub Wiki
PPoShTools -> Set-SimpleAcl.ps1
Sets a simple ACL rule for given Path.
Set-SimpleAcl [-Path] <String> [-User] <String> [-Permission] <String> [-Type]
<String> [-Inherit] [-WhatIf] [-Confirm] [<CommonParameters>]
Returns true if an access rule has been added. False if it was already present.
- PipelineInput: false
- Required: true
- PipelineInput: false
- Required: true
- Valid values: FullControl, Modify, ReadAndExecute, ListDirectory, Read, Write
- PipelineInput: false
- Required: true
- Valid values: Allow, Deny
- PipelineInput: false
- Required: true
- DefaultValue: True
- PipelineInput: false
- Required: false
- PipelineInput: false
- Required: false
- PipelineInput: false
- Required: false
Set-SimpleAcl -Path 'c:\test' -User 'Everyone' -Permission 'FullControl' -Type 'Allow'