Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 536 Bytes

ReservedCmdletChar.md

File metadata and controls

36 lines (25 loc) · 536 Bytes
description ms.date ms.topic title
Reserved Cmdlet Chars
06/28/2023
reference
ReservedCmdletChar

ReservedCmdletChar

Severity Level: Error

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

Wrong

function MyFunction[1]
{...}

Correct

function MyFunction
{...}