I have one url and I want to download the all web url content and copy it to some text file but unable to do so. That URL have username and password as well so please guide how to do this. Do I need to pass credentials also in script. If yes, then how. Any insight would be appreciated.
Till now code is -
Invoke-WebRequest -Uri abc.com/#/queues -Credential "guest" $WebClient = New-Object System.Net.WebClient $WebClient.DownloadFile('abc.com/#/queues/%2F/onp.document.dlq','C:\Users\ankitpar\test.txt')
but on executed it’s not giving the desired result. It’s not copying the web page.