Skip navigation

Q. What are the PowerShell BITS management cmdlets that replace bitsadmin.exe?

A. Windows Server 2008 R2 and Windows 7 introduced the BitsTransfer module, which is made up of several cmdlets to manage BITS traffic. See the example below to import the BitsTransfer module, list the available commands, then list all BITS transfers for all users.

PS C:\> Import-Module BitsTransfer
PS C:\> Get-Command -Module BitsTransfer

CommandType Name Definition
----------- ---- ----------
Cmdlet Add-BitsFile Add-BitsFile \\[-BitsJob\\] <BitsJob\\[\\]> \\[-Source\\] <S...
Cmdlet Complete-BitsTransfer Complete-BitsTransfer \\[-BitsJob\\] <BitsJob\\[\\]> \\[-V...
Cmdlet Get-BitsTransfer Get-BitsTransfer \\[\\[-Name\\] <String\\[\\]>\\] \\[-AllUsers...
Cmdlet Remove-BitsTransfer Remove-BitsTransfer \\[-BitsJob\\] <BitsJob\\[\\]> \\[-Ver...
Cmdlet Resume-BitsTransfer Resume-BitsTransfer \\[-BitsJob\\] <BitsJob\\[\\]> \\[-Asy...
Cmdlet Set-BitsTransfer Set-BitsTransfer \\[-BitsJob\\] <BitsJob\\[\\]> \\[-Displa...
Cmdlet Start-BitsTransfer Start-BitsTransfer \\[-Source\\] <String\\[\\]> \\[\\[-Desti...
Cmdlet Suspend-BitsTransfer Suspend-BitsTransfer \\[-BitsJob\\] <BitsJob\\[\\]> \\[-Ve...


PS C:\> Get-BitsTransfer -AllUsers

JobId DisplayName TransferType JobState OwnerAccount
----- ----------- ------------ -------- ------------
d7baf9ce-5ed2-4af3-8... WU Client Download Download Suspended NT AUTHORITY\SYSTEM
ddd96793-b763-4980-9... WU Client Download Download Suspended NT AUTHORITY\SYSTEM
56ee8411-b354-4a46-a... WU Client Download Download Suspended NT AUTHORITY\SYSTEM

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish