![]() Then you can copy the link address to the direct download: In the Network traffic, you should see one request for the vs_Professional.exe page. Go to the "download" page that you have above. To get the "real" link, start your web browser, open up the Developer Tools ( F12). ![]() the website doesn't change, and all real links are all stored in a database somewhere). The code displays the page, then the page kicks off a piece of javascript that makes the actual request to the "real" link (i.e. When you go to the "Download" page that you mentioned: ![]() The issue is that it's not a direct link to the "actual" installer. I was wondering how I can get this to download the correct. If you go to the link, a file gets automatically downloaded (the correct file), but the cmdlet gives the wrong file. $vsOptions = -FilePath $filePath -ArgumentList $vsOptionsįor some reason, Invoke-WebRequest isn't downloading the file it is supposed to be. $optionsIncludeRecommended = "-includeRecommended" ![]() $optionsAddLayout = ::Join(" ", $workloadArgument ) #Invoke-WebRequest -URI $url -OutFile $filePath $filePath = "C:\dev\pub\vs\vs_professional.exe" New-Item -Path 'C:\dev\pub\vs' -ItemType Directory -force It is supposed to download visual studio via a powershell script $url = "" ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |