Powershell: Sample for Download Files from an HTTP page

Import-Module BitsTransfer $emailFileList = “” $destinationFolder = “E:\DestTest\” $uri = “https://test.com/test/test/” $hrefs = (invoke-webrequest -Uri $uri).links.innerText $existingFolder = “E:\ExistingFolder” $existingFiles = Get-ChildItem -Path $existingFolder $download = $true foreach ($href in $hrefs) { $download = $true foreach ($existingFile in $existingFiles) { if ($href -eq $existingFile.Name) { $download = $false } }…

Continue reading

Powershell: Read links in an HTTP page and download all the links

Read the links in an HTTP page $url = “http://mirror.internode.on.net/pub/test/10meg.test” $output = “$PSScriptRoot\10meg.test” $start_time = Get-Date Invoke-WebRequest -Uri $url -OutFile $output Download Files with System.Net.WebClient $url = “http://mirror.internode.on.net/pub/test/10meg.test” $output = “$PSScriptRoot\10meg.test” $start_time = Get-Date $wc = New-Object System.Net.WebClient $wc.DownloadFile($url, $output) #OR (New-Object System.Net.WebClient).DownloadFile($url, $output) Write-Output “Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)” Download…

Continue reading

Cisco Unified SSL Issue with New Firefox

Issue Since the 30th of June of 2015, Mozilla Firefox doesn’t support connections to a server with weak Diffie-Hellman ciphers anymore (Mozilla Release Notes🙂 Solution Perform at your own risk. Accidental adjustment may effect Firefox’s performance. To fix type about:config in your Firefox web browser, in the address bar. Change…

Continue reading