Category Archives: Windows Powershell Scripting

Special characters in Windows Powershell scripting

You should know the meaning of each special character in Powershell.

  1. “-” : This is used to specify the parameter to the command.
  2. @ : This is used to declare array variables.
  3. $ : This is used to access the variable value
  4. # : This is used to mark the comment in Powershell script
  5. % : This is used as a modulus operator. This is also used as foreach Cmdlet.
  6. () : This is used to evaluate the command and return the output.