[Question] Array inside Here String?

Hey guys, my goal is to be able to create a datagridview with hyperlink inside the grid. My first goal: put my output array into here string: $PrinterServers = @(“server1″,”server2”) $name = ForEach ($printerserver in $PrinterServers) { (get-printer -ComputerName $printerserver| Where-Object { $_.PrinterStatus -eq “Error” } | Select-Object -ExpandProperty Name ) }

$data = @" name,portname $_.name,$_.portname "@ | convertfrom-csv 

I need those arrays inputted inside of that here string. I am using .psf for this datagridview.

submitted by /u/rp042329
[link] [comments]

Leave a Reply