Skip to content

Commit

Permalink
Merge pull request #2 from erikplekenpol/erikplekenpol-patch-1
Browse files Browse the repository at this point in the history
Update Azure-IP-Downloader.ps1
  • Loading branch information
thedxt authored Feb 6, 2023
2 parents 8fb806d + 4f23914 commit 089a0d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Azure-IP-Downloader.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ $exportlocation = "C:\temp\"
$regionFilter = "canada"

#grab URI from txt file
$DLURI = Invoke-WebRequest -uri "https://raw.githubusercontent.com/thedxt/IP-Downloader/main/URIs/Azure-JSON-URI.txt"
$LocationURI = Invoke-WebRequest -uri "https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519"
$DLURI = $LocationURI.Links | Where-Object {$_.InnerText -Like "click here to download manually" }

#download the JSON file from MS
$MSjsonDL = Invoke-WebRequest -Uri $DLURI.Content
$MSjsonDL = Invoke-WebRequest -Uri $DLURI.href

#getting date
$time = get-date -f yyyy_MMM_dd_hhmm_tt
Expand Down

0 comments on commit 089a0d5

Please sign in to comment.