|
|
|
|
|
by Arnavion
3323 days ago
|
|
You can do it in one line in PS too. $sites = @('https://www.google.com/', 'https://www.example.com/')
$searchString = 'oogle'
$sites | %{ if ((iwr $_).Content -like "*$searchString*") { "$_;OK" } else { "$_;NOT OK" } } > C:\temp\output.csv
|
|