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

Using BITS

· 52CE 我爱测

The following steps show how to perform a file transfer using the Background Intelligent Transfer Service (BITS) interfaces.

The following steps show how to perform a file transfer using the Background Intelligent Transfer Service (BITS)  interfaces.

To perform a file transfer

  1. Connect to the BITS service
  2. Create a transfer job
  3. Add files to the job
  4. Start the job
  5. Determine if BITS successfully transferred the files
  6. Complete the job

The previous steps show how to transfer files using the default property values for a job. You can change the default behavior by changing one or more of the job's property values. For example, you can change the priority that the job is processed relative to other jobs in the queue, specify your own proxy setting, and register to receive event notification when BITS has transferred the files. For more information, see Setting and Retrieving the Properties of a Job.

Windows PowerShell provides a simple mechanism to manage many BITS tasks. This section contains the following topics that show how to use Windows PowerShell cmdlets with BITS:

Note:

Starting with Windows 10, version 1607, you can also run PowerShell Cmdlets and use BITSAdmin or other applications that use the BITS interfaces from a PowerShell Remote command line connected to another machine (physical or virtual). This capability is not available when using a PowerShell Direct command line to a virtual machine on the same physical machine, and it is not available when using WinRM cmdlets.

A BITS Job created from a Remote PowerShell session will run under that session’s user account context and will only make progress when there is at least one active local logon session or Remote PowerShell session associated with that user account. For more information, see To manage PowerShell Remote sessions.

This section also contains the following topics:

For sample code that uses the BITS interfaces, see BITS Samples and Tools.

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)

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

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