PowerShell Arrays

Last updated:

POWERSHELL

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