Characters and Emojis in PowerShell

Once something funny, or rather something that has nothing to do with the typical PowerShell things. The retrieval of characters in PowerShell. Let’s jump in.

Retrieving Characters in PowerShell

For showing all (or almost all) characters run the following code. The example gets 15.000 characters.

# Showing Unicode 16-bit character

for ($i=0; $i -lt 15000;$i++) {

   "Char $i : $([char]$i)"

To show only one of them run the command below.


Want more fun? Get Emoji Characters …


Cool stuff.

Grab more here:


Categories: PowerShell

Tagged as: ,

7 replies »

  1. Patrick, it was a version issue. I had not updated for some time.I performed an update and opened in VS Code; it works perfectly.


  2. PAtrick, thanks for sharing this bit of code. However it does not show the emoji characters for me, just a generic question mark inside a box for each of them. Is there a graphics package that must be loaded in Powershell in order to display them properly?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.