Syntax Formatting Guide for

This document is a guide to the syntax representations shown here at It is intended to help you understand the syntax shown for each command.

The following example syntax statement, taken from the icacls command,  will be used to explain the  syntax elements you may see for a command:

icacls FileName [/grant[:r] Sid:<Perm>[...]] [/deny Sid:Perm[...]]
 [/remove[:g|:d]] Sid[...]] [/t] [/c] [/l] [/q]
 [/setintegritylevel Level:Policy[...]]


icacls Directory [/substitute SidOld SidNew [...]]
 [/restore ACLfile [/c] [/l] [/q]]

The first parameter in the syntax is always the command itself. In this case, it is the icacls command. This command is used to manage permissions from the Command Prompt.

When you see italicized parameters, these represent variables. For example, the parameter FileName should be replaced with an actual filename and the parameter Directory should be replaced with an actual directory of folder name, such as:

icacls file1.txt

The preceding command would display the current permissions on the file named file1.txt.

Parameters inside of square brackets are optional. For example, with the icacls command, you can use the /t switch if you need it, but it is not required for the command to process.

When you see […], this indicates that you can repeat the previous parameter as often as needed in the command. For example, when using the icacls command to grant permissions, you can do so for multiple SIDs (security IDs) at the same time.