Describes the special characters that you can use to control how (about_Special_Characters)


Describes the special characters that you can use to control how
Windows PowerShell interprets the next character in a command or parameter.

Windows PowerShell supports a set of special character sequences that
are used to represent characters that are not part of the standard
character set.

The special characters in Windows PowerShell begin with the backtick
character, also known as the grave accent (ASCII 96).

The following special characters are recognized by Windows PowerShell:

`0 Null
`a Alert
`b Backspace
`f Form feed
`n New line
`r Carriage return
`t Horizontal tab
`v Vertical tab

These characters are case-sensitive.

NULL (`0)
Windows PowerShell recognizes a null special character (`0) and represents
it with a character code of 0. It appears as an empty space in the
Windows PowerShell output. This allows you to use Windows PowerShell to
read and process text files that use null characters, such as string
termination or record termination indicators. The null special character
is not equivalent to the $null variable, which stores a value of NULL.

ALERT (`a)
The alert (`a) character sends a beep signal to the computer's speaker.
You can use this to warn a user about an impending action. The following
command sends two beep signals to the local computer's speaker:

for ($i = 0; $i -le 1; $i++){"`a"}

The backspace character (`b) moves the cursor back one character, but it
does not delete any characters. The following command writes the word
"backup", moves the cursor back twice, and then writes the word "out"
(preceded by a space and starting at the new position):

"backup`b`b out"

The output from this command is as follows:

back out

The form feed character (`f) is a print instruction that ejects the
current page and continues printing on the next page. This character
affects printed documents only; it does not affect screen output.

The new line character (`n) inserts a line break immediately after the

The following example shows how to use the new line character in a
Write-Host command:

"There are two line breaks`n`nhere."

The output from this command is as follows:

There are two line breaks


The carriage return character (`r) eliminates the entire line prior
to the `r character, as though the prior text were on a different line.

For example:

Write-Host "Let's not move`rDelete everything before this point."

The output from this command is:

Delete everything before this point.

The horizontal tab character (`t) advances to the next tab stop and
continues writing at that point. By default, the Windows PowerShell
console has a tab stop at every eighth space.

For example, the following command inserts two tabs between each


The output from this command is:

Column1 Column2 Column3

The horizontal tab character (`t) advances to the next vertical tab stop
and writes all subsequent output beginning at that point. This character
affects printed documents only. It does not affect screen output.


C:\Windows>powershell get-help about_split -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole

... Home  
... Impressum
... ColorConsole

... CMD
... Netsh-XP
... Netsh-7
... Netsh-Vista
... Powershell
... FAQ
HTTP: ... PS_Windows/en/about_Special_Characters.htm


Windows-8 Download?


Your Android device does not support data connection error message!


How to define in Windows 8 / 10 a program to open multiple file types?


Program Starter portable files and installed, programs and location?


How to remove the OneDrive folder from File Explorer in Windows-10?


How to find the Language and Region settings in Windows-10?


How to change or set Windows 7 default font settings to bold, italic?


Customize the paging file pagefile.sys in Windows 8.1, 8 and 10!