BITS
Posted by: Richard Siddaway
As well as looking at WMI I thought it was time to branch out a bit and look at other functionality that could administrators
The BITS (Background Intelligent Transfer Service) service is used for file transfer. Its normally thought of as being used across the internet but it can also be used in the enterprise. PowerShell v2 on Windows Vista/2008 and above comes with a BITS module
Import-Module BitsTransfer
which contains these cmdlets
Add-BitsFile – Adds one or more files to an existing Background Intelligent Transfer Service (BITS) transfer job.
Complete-BitsTransfer – Completes a Background Intelligent Transfer Service (BITS) transfer job.
Get-BitsTransfer – Retrieves the associated BitsJob object for an existing Background Intelligent Transfer Service (BITS) transfer job
Remove-BitsTransfer – Cancels a Background Intelligent Transfer Service (BITS) transfer job.
Resume-BitsTransfer – Resumes a Background Intelligent Transfer Service (BITS) transfer job.
Set-BitsTransfer – Modifies the properties of an existing Background Intelligent Transfer Service (BITS) transfer job.
Start-BitsTransfer – Creates a new Background Intelligent Transfer Service (BITS) transfer job.
Suspend-BitsTransfer – Suspends a Background Intelligent Transfer Service (BITS) transfer job.
The actual transfer can be accomplished like this
Start-BitsTransfer -Source http://webr201/transfer/test1.txt -Destination c:\source\transfer\
The help states that wildcards are supported in the source but my testing, so far just produces an error message.
So far I’ve been using a full IIS server as the source – there is another way as we will see later




