Asked By
betty lodge
10 points
N/A
Posted on - 05/03/2017
I have recently started using Microsoft PowerShell, and have started learning the basics of it. How to create an array in PowerShell group in it? Can you help me?
Answered By
keiku
0 points
N/A
#296242
How To Create An Array In PowerShell Using Office?
PowerShell array holds a similar or dissimilar list of data. The data type can be declared at the beginning to have the same type of data items. Arrays can be created by separating the items with commas. You can create an array $yourarray with the elements with the blend of data types as:
$yourarray= 2,”HI”, 4.5,”BABY”
You can even create empty and multi-dimensional arrays. Values can be added to an array using + or = operator.