powershell - Import-CSV and Foreach - Stack Overflow
https://stackoverflow.com/questions/15173213/import-csv-and-foreach
WEBMar 2, 2013 · $filepath = ".\ADcomputerslist.csv" $servers = Import-CSV $filepath -delimiter "," Foreach ($entry in $servers) { write-host $entry.name } also can replace stupid file with object. $servers = Get-ADComputer -Filter * -Property * | Select-Object Name,OperatingSystem,OperatingSystemVersion,ipv4Address
DA: 89 PA: 95 MOZ Rank: 95