Skip to content

Sajal Choudhary

Garden Stream Nordletter Shelf About
Colophon Now Feeds
Evergreen TIL Stories Poems
Blog Micro Photos
Books Film TV Games
til powershell
Sajal Choudhary https://sajalchoudhary.net

PowerShell Arrays

POWERSHELL
Planted .

How to create arrays

An empty array can be created by using @()

Example array:

$ExampleArray = @(
	"C:\test",
	"C:\test2"
)

references:

  1. Everything you wanted to know about arrays - PowerShell | Microsoft Docs
Updated April 12, 2022 at 15:31 . Thoughts? Email me.
Posted to:
Bluesky
About Colophon Now Books Evergreen TIL Stories Poems Photos

© 2026 Sajal Choudhary

Streak New posts for 134 consecutive weeks