![]() ![]() The following steps describes PowerShell script to download zip file from internet and unzip it Assign Download zip file from url path to variable Using Invoke-RestMethod, it download file from specified url and save it to location. In the above PowerShell script, $Source variable contains download file url path. ![]() Invoke-RestMethod -Uri $source -OutFile $destination $destination = 'D:\powershell-beginners-guide.md' In PowerShell to download file from url, use Invoke-RestMethod cmdlet which takes source file url and download file to destination location.įor example, let’s consider an example to download file from github repository.įile name : powershell-beginners-guide.mdĭestination to download file from url : D:\ $source = '' 5 Conclusion PowerShell Download File from Url
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |