Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update icacls with PowerShell usage example #7969

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions WindowsServerDocs/administration/windows-commands/icacls.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ Displays or modifies discretionary access control lists (DACLs) on specified fil
> [!NOTE]
> This command replaces the deprecated [cacls command](cacls.md).

> [!TIP]
> If you're using owershell you will get the error `"OI : The term 'OI' is not recognized as the name of a cmdlet, function, script file, or operable program."` You'll need to wrap the arguments in parenthesis.
> ```
> icacls C:\Myfolder\Myotherfolder\ /grant John:(OI)(CI)F /T /C /L /Q
> ```
> Would need to be written as:
> ```
> icacls "C:\Myfolder\Myotherfolder\" /grant "John:(OI)(CI)F" /T /C /L /Q
> ```


## Syntax

```
Expand Down