← Docs home

Cmdlet Names: Characters That Cannot Be Used

📐 Rule.

Do not use any of these special characters when naming cmdlets.

Character Name
# number sign
, comma
() parentheses
{} braces
[] brackets
& ampersand
- hyphen
/ slash mark
\ backslash
$ dollar sign
^ caret
; semicolon
: colon
" double quotation mark
' single quotation mark
<> angle brackets
| vertical bar
? question mark
@ at sign
` back tick, grave accent
* asterisk
% percent sign
+ plus sign
= equals sign
~ tilde

Hyphen exception.

The hyphen separates the verb from the noun. It cannot appear inside the noun or inside the verb.