I need to be able to download a file from a server (running windows Server 2008 r2) to my client windows 10 computer over a network that uses domain authentication (I will need to provide credentials to the server).

I need to do this using powershell.

up vote 1 down vote accepted

This is fully documented in the Microsoft provided docs and help files and all over the web.

Using Windows PowerShell to Create BITS Transfer Jobs

Leverage BITS for File Transfers with PowerShell

All-in-all, just use the BITS cmdlets and just use the help files, and their provided examples in them:

Get-Command -Name '*bits*'

CommandType Name                   Version     Source                           
----------- ----                   -------     ------                           
Cmdlet      Add-BitsFile      BitsTransfer                     
Cmdlet      Complete-BitsTransfer     BitsTransfer                     
Cmdlet      Get-BitsTransfer     BitsTransfer                     
Cmdlet      Remove-BitsTransfer     BitsTransfer                     
Cmdlet      Resume-BitsTransfer     BitsTransfer                     
Cmdlet      Set-BitsTransfer     BitsTransfer                     
Cmdlet      Start-BitsTransfer     BitsTransfer                     
Cmdlet      Suspend-BitsTransfer     BitsTransfer                     
Application bitsadmin.exe          7.8.17763.1 C:\Windows\system32\bitsadmin.exe

# Get parameters, examples, full and Online help for a cmdlet or function
# get function / cmdlet details
(Get-Command -Name Get-ADUser).Parameters
Get-help -Name Get-ADUser -Examples
Get-help -Name Get-ADUser -Full
Get-help -Name Get-ADUser -Online

Get-Help about_*
Get-Help about_Functions

# All Help topics locations
Get-Help about* | Select Name, Synopsis

Get-Help about* | 
  Select-Object -Property Name, Synopsis |
  Out-GridView -Title 'Select Topic' -OutputMode Multiple |
  ForEach-Object {
    Get-Help -Name $_.Name -ShowWindow

explorer "$pshome\$($Host.CurrentCulture.Name)"

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.