November 2018
Intermediate to advanced
566 pages
17h 15m
English
This task involves PowerShell visiting a web page and picking up the links. You can use the Invoke-WebRequest cmdlet for this. To add perspective, Invoke-WebRequest shares many similarities with curl and wget. This recipe also involves the use of a simple if statement. The syntax and working of the statement will be covered in the Flow Control using Branches and Loops chapter.
You ask your friend to save the CSV with the same name at the home location. You will take care of deleting the file after processing. You send him the steps, which are as follows:
$CsvImport = Import-Csv ./ch06/05-sitelist.csv
Read now
Unlock full access