Hi,
Trying to run a script in automation with parameters.
Here is the simple code :
testparam
param(
[Parameter(Mandatory=$true)]
[String[]] $computerList
)
foreach($computer in $computerList){
write-host “… : $computer”
}
Calling the script with param PC1,PC2,PC3
The output with automation :
[INF] … : PC1,PC2,PC3
The output with PS 5.1 :
… PC1
… PC2
… PC3
Could you help me with this ?