大网数据广告活动
网络与域名解析

Managed Reference for BITS PowerShell Commands

· 52CE 我爱测

Background Intelligent Transfer Service (BITS) 4.0 can use Windows PowerShell cmdlets to manage transfer jobs.

Background Intelligent Transfer Service (BITS) 4.0 can use Windows PowerShell cmdlets to create and manage file download and upload transfer jobs.

Import-Module BitsTransfer
mkdir -force c:\temp\BITSFILES
Start-BitsTransfer -Source https://aka.ms/WinServ16/StndPDF -Destination c:\temp\BITSFILES\WindowsServer2016.pdf

Windows PowerShell cmdlets for BITS provide much of the same functionality as the bitsadmin command-line utility. However, Windows PowerShell also does the following:

  • Automates BITS tasks in an extensible and management-oriented scripting language.
  • Provides a single tool for all job-related tasks.

Note:
To use these commands, you must first import the BITS PowerShell module, using the Import-Module BitsTransfer command. For more information, see the following TechNet article.

For more information on using Windows Powershell, see Windows PowerShell.

BITS PowerShell Classes

Namespace: Microsoft.BackgroundIntelligentTransfer.Management

Assembly: System.Management.Automation

These BITS command classes are implemented by Windows PowerShell. These classes are included in this software development kit (SDK) for completeness only. The members of these classes cannot be used directly, nor should they be used to derive other classes.

Class Description
AddBitsFileCommand Adds one or more files to an existing BITS transfer job. See the Add-BitsFile cmdlet for detailed information about the parameters and for examples.
ClearBitsTransferCommand Cancels a BITS transfer job. See the Clear-BitsTransfer cmdlet for detailed information about the parameters and for examples.
CompleteBitsTransferCommand Completes a BITS transfer job. See the Complete-BitsTransfer cmdlet for detailed information about the parameters and for examples.
GetBitsTransferCommand Retrieves the associated BitsJob object for an existing BITS transfer job. See the Get-BitsTransfer cmdlet for detailed information about the parameters and for examples.
NewBitsTransferCommand Creates a new BITS transfer job. See the New-BitsTransfer cmdlet for detailed information about the parameters and for examples.
ResumeBitsTransferCommand Resumes a BITS transfer job. See the Resume-BitsTransfer cmdlet for detailed information about the parameters and for examples.
SetBitsTransferCommand Modifies the properties of an existing BITS transfer job. See the Set-BitsTransfer cmdlet for detailed information about the parameters and for examples.
SuspendBitsTransferCommand Suspends a BITS transfer job. See the Suspend-BitsTransfer cmdlet for detailed information about the parameters and for examples.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。