c
chris bons

Posted on 17th April 2024|910 views

0
votes

Powershell Pass Array To Function

How will we pass arrays to function in Powershell?

Answers
P
Surya kumar

Posted on 17th April 2024

  1. The following program illustrates how arrays can be passed to function:
Param

{

[array]$ArrayList = Get-Content ArrayList.txt

}

foreach($array in $ArrayList)

{

Write-Host $array

}

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos