Set-EPRDirectoryPermission
SYNOPSIS
Adds a access rule for an account to a directory.
SYNTAX
1 2 3 |
|
DESCRIPTION
Set-EPRDirectoryPermission adds a access rule to the specified directory. By default the access rule added has the following settings:
- FileSystemRights = Modify
- InheritanceFlags = ContainerInherit,ObjectInherit
- PropagationFlags = None
- AccessControlType = Allow
EXAMPLES
EXAMPLE 1
1 |
|
PARAMETERS
-Access
Specifies the type of operation associated with the access rule
1 2 3 4 5 6 7 8 9 |
|
-AccessControlType
Specifies whether to allow or deny the operation.
1 2 3 4 5 6 7 8 9 |
|
-Account
The name of a user account.
1 2 3 4 5 6 7 8 9 |
|
-InheritanceFlags
Specifies how access masks are propagated to child objects.
1 2 3 4 5 6 7 8 9 |
|
-Path
Path to directory that the access rule should be added for.
1 2 3 4 5 6 7 8 9 |
|
-ProgressAction
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by the Write-Progress cmdlet. The Write-Progress cmdlet creates progress bars that show a command's status.
The ProgressAction parameter takes one of the ActionPreference enumeration values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend, or Break.
1 2 3 4 5 6 7 8 9 |
|
-PropagationFlags
Specifies how Access Control Entries (ACEs) are propagated to child objects.
1 2 3 4 5 6 7 8 9 |
|
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.