By default it will reject 5 redirects and if it continues, the download will stop. MaximumRedirection: The number of times a link is redirected and the download command still stands and follows the next link. Outfile: This parameter can save the name of the file being downloaded to another path and name.Ĭredential:This parameter allows us to send a username and password to allow access to download the file.ĭisableKeepAlive: To enable or disable KeepAlive when downloading. In this article, we will explain some very important parameters of this command. This command has many parameters that will help you to download the file with different features. Now, with the explanations that we have provided to you, we will explain and use this command.įor example, to download a file from a site, the following command will be entered: Invoke-WebRequest -Uri “” You can use the wget, curl and iwr commands instead of the Invoke-WebRequestcommand. This command, like other PowerShell commands, has Aliases that make it easy to use. The Invoke-WebRequest command is a very complete command for downloading all types of files with a direct link.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |