How To Create An Array In PowerShell Using Office?

Asked By 10 points N/A Posted on -
qa-featured

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?

SHARE
Answered By 0 points N/A #296242

How To Create An Array In PowerShell Using Office?

qa-featured

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.

Image result for create an array in PowerShell

Related Questions