Tag Archives: powershell array

[PowerShell Tip] – Assign array elements to separate variables in single line of code

Hi, In this post, we’ll see how we can assign array elements to separate variables in a single line of code Consider a sample array $TestArray = @(“FirstElement”, “SecondElement”) Now, to get the value of the elements into separate variables, … Continue reading

Posted in PowerShell | Tagged , , , , | Leave a comment