never-displayed
View discussion in a popup
Hi!
I can't remember how to Create one Array from another
I have this:
$newvms = @("VM_1.local","VM_2.local")Foreach ($newvm in $newvms) {$report = Get-VM | ? Name -like *$newvm*}$report
$newvms = @(
"VM_1.local",
"VM_2.local"
)
Foreach ($newvm in $newvms) {
$report = Get-VM | ? Name -like *$newvm*
}
$report
i this structure how i can get $report ?