大网数据广告活动
Windows排障命令

bitsadmin transfer

· 52CE 我爱测

Reference article for the bitsadmin transfer command, which transfers one or more files.

Transfers one or more files. By default, the BITSAdmin service creates a download job that runs at NORMAL priority and updates the command window with progress information until the transfer is complete or until a critical error occurs,

The service completes the job if it successfully transfers all the files and cancels the job if a critical error occurs. The service does not create the job if it is unable to add files to the job or if you specify an invalid value for type or job_priority. To transfer more than one file, specify multiple <RemoteFileName>-<LocalFileName> pairs. The pairs must be space-delimited.

Note: The BITSAdmin command continues to run if a transient error occurs. To end the command, press CTRL+C.

Syntax

bitsadmin /transfer <name> [<type>] [/priority <job_priority>] [/ACLflags <flags>] [/DYNAMIC] <remotefilename> <localfilename>

Parameters

Parameter Description
name The name of the job. This command can't be a GUID.
type Optional. Sets the type of job, including:<ul><li>/DOWNLOAD. The default value. Choose this type for download jobs.</li><li>/UPLOAD. Choose this type for upload jobs.</li></ul>
priority Optional. Sets the priority of the job, including:<ul><li>FOREGROUND</li><li>HIGH</li><li>NORMAL</li><li>LOW</li></ul>
ACLflags Optional. Indicates that you want to maintain the owner and ACL information with the file being downloaded. Specify one or more of the values, including:<ul><li>o - Copy owner information with file.</li><li>g - Copy group information with file.</li><li>d - Copy discretionary access control list (DACL) information with file.</li><li>s - Copy system access control list (SACL) information with file.</li></ul>
/DYNAMIC Configures the job using BITS_JOB_PROPERTY_DYNAMIC_CONTENT, which relaxes the server-side requirements.
remotefilename The name of the file after it's transferred to the server.
localfilename The name of the file that resides locally.

Examples

To start a transfer job named myDownloadJob:

bitsadmin /transfer myDownloadJob http://prodserver/audio.wma c:\downloads\audio.wma

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). 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 Server documentation
适用范围
Windows Server · Source date 10/16/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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