Author Topic: Manage BITS (Background Intelligent Transfer Service) with Windows PowerShell  (Read 3537 times)

0 Members and 1 Guest are viewing this topic.

Offline Nick

  • Administrator
  • Platinum Member
  • *
  • Posts: 46027
  • Karma: +1000/-0
  • Gender: Male
  • NickCS
    • http://www.facebook.com/nickcomputerservices
    • http://www.twitter.com/nickcomputer
    • Computer Chiangmai

Manage BITS (Background Intelligent Transfer Service) with Windows PowerShell

In Windows 7, the BITSAdmin tool has been deprecated and instead you should use Windows PowerShell. Here’s an overview of the cmdlets you need to know.


Windows 7 includes Background Intelligent Transfer Service (BITS) 3.5.BITS is a file-transfer service designed to transfer files across the Internet using only idle network bandwidth. Unlike standard Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), or shared-folder file transfers, BITS does not use all available bandwidth, so you can use BITS to download large files without affecting other network applications. BITS transfers are also very reliable and can continue when users change network connections or restart their computers.

Previous versions of Windows provided command-line management of BITS using the BITSAdmin.exe tool. In Windows 7, BITSAdmin.exe is deprecated. Instead, you should use the Windows PowerShell cmdlets.

From Windows PowerShell, you begin by running the following command:
Import-Module BitsTransfer

After you import the BitsTransfer module, the following cmdlets are available:

-Add-BitsFile Adds files to a BITS transfer
-Complete-BitsTransfer Completes a BITS transfer
-Get-BitsTransfer Gets a BITS transfer
-Remove-BitsTransfer Stops a BITS transfer
-Resume-BitsTransfer Resumes a suspended BITS transfer
-Set-BitsTransfer Configures a BITS transfer job
-Start-BitsTransfer Creates and starts a BITS transfer job
-Suspend-BitsTransfer Pauses a BITS transfer job

For example, the following Windows PowerShell command begins a BITS transfer from the local computer to a computer named CLIENT:

Start-BitsTransfer -Source file.txt -Destination \\client\share -Priority normal

When running Windows PowerShell interactively, the PowerShell window displays the progress of the transfer. The following command uses an abbreviated notation to download a file from a Web site to the local computer:

Start-BitsTransfer http://server/dir/myfile.txt C:\docs\myfile.txt

For detailed information, run the following command from a Windows PowerShell prompt:

Help About_BITS_Cmdlets

From the Microsoft Press book The Windows 7 Resource Kit by Mitch Tulloch, Tony Northrup, Jerry Honeycutt, Ed Wilson, and the Windows 7 Team at Microsoft.

credit: technet.microsoft.com


 
Share this topic...
In a forum
(BBCode)
In a site/blog
(HTML)


Related Topics

  Subject / Started by Replies Last post
0 Replies
2906 Views
Last post February 16, 2009, 06:56:00 PM
by Webmaster
0 Replies
7261 Views
Last post September 10, 2009, 11:47:20 AM
by IT
0 Replies
2939 Views
Last post June 11, 2010, 06:56:51 PM
by Nick
0 Replies
2904 Views
Last post June 11, 2010, 07:10:30 PM
by Nick
0 Replies
1871 Views
Last post July 02, 2010, 05:19:25 PM
by Nick
0 Replies
3443 Views
Last post July 03, 2010, 03:11:45 PM
by Nick
0 Replies
2681 Views
Last post July 03, 2010, 03:14:50 PM
by Nick
0 Replies
3859 Views
Last post July 03, 2010, 03:15:40 PM
by Nick
0 Replies
3526 Views
Last post September 22, 2010, 10:58:42 PM
by Nick
0 Replies
397 Views
Last post October 22, 2019, 02:16:59 PM
by guupost