

The C:\clienttestdir\testfile1.txt file on the client is transferred to The command prompt returns when the file transfer is complete or enters an error state.

This command creates a BITS transfer job that uploads a file to a server.īecause the default transfer type is Download, the TransferType parameter must be set to Upload. Example 3: Create a BITS transfer job that uploads a file PS C:\> Start-BitsTransfer -Source "c:\clienttestdir\testfile1.txt" -Destination " -TransferType Upload Note: First line of the file must include Source, Destination header as in the example. The contents of the filelist.txt file resemble the following information: The Start-BitsTransfer command creates a new BITS transfer job for each of the files in filelist.txt and then transfers them concurrently to the client. The command imports the source and destination file locations and then pipes the locations to the Start-BitsTransfer command.
#Remotejoylite transfer type download
This command creates BITS transfer jobs that download multiple files from a server. Start-BitsTransfer " "c:\clienttestdir\testfile1.txt" Example 2: Create BITS transfer jobs that download multiple files PS C:\> Import-CSV filelist.txt | Start-BitsTransfer When you upload files to an HTTP location, the TransferType parameter must be set to Upload.īecause the Start-BitsTransfer cmdlet assumes that the first parameter is the source and that the second parameter is the destination when no value is specified, this command could be simplified as follows: The command prompt returns when the file transfer is complete or when it enters an error state. The local and remote names of the file are specified in the Source and Destination parameters.īecause the default transfer type is Download, the file is transferred to C:\clienttestdir\testfile1.txt on the client. This command creates a BITS transfer job that downloads a file from a server. Examples Example 1: Create a BITS transfer job that downloads a file PS C:\> Start-BitsTransfer -Source " -Destination "c:\clienttestdir\testfile1.txt" Or, if you need to upload more than one file, consider a cabinet file (.cab) or a compressed file (.zip).

If you need to upload more than one file, you can use the Import-Csv cmdlet to pipe the output to the Add-BitsFile cmdlet to upload multiple files. The Start-BitsTransfer cmdlet supports the download of multiple files from a server to a client computer, but it does not generally support the upload of multiple files from a client computer to a server.
#Remotejoylite transfer type code
If the state of the returned BitsJob object is Error, the error code and description are contained in the object and can be used for analysis. The TransferType parameter specifies the direction of the transfer.īy default, after the cmdlet begins the transfer, the command prompt is not available until the transfer is complete or until the transfer enters an error state. The Start-BitsTransfer cmdlet creates a Background Intelligent Transfer Service (BITS) transfer job to transfer one or more files between a client computer and a server. In this article Syntax Start-Bits Transfer
