Skip to content

Files

Latest commit

 

History

History
34 lines (22 loc) · 664 Bytes

ReservedCmdletChar.md

File metadata and controls

34 lines (22 loc) · 664 Bytes

Pattern: Use of reserved character for cmdlet

Issue: -

Description

You cannot use following reserved characters in a function or cmdlet name as these can cause parsing or runtime errors.

Reserved Characters include:

#,(){}[]&/\\$^;:\"'<>|?@`*%+=~

How

Remove reserved characters from names.

Example of incorrect code:

function CustomFunction[1]
{...}

Example of correct code:

function CustomFunction
{...}

Further Reading