适用于: Windows Server (半年通道) ,Windows Server 2019,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012,Windows 10Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows 10

Bitsadmin 是一个命令行工具,用于创建、下载或上载作业,以及监视其进度。Bitsadmin is a command-line tool used to create, download or upload jobs, and to monitor their progress. Bitsadmin 工具使用开关来确定要执行的工作。The bitsadmin tool uses switches to identify the work to perform. 可以调用 bitsadmin /?bitsadmin /help 以获取开关列表。You can call bitsadmin /? or bitsadmin /help to get a list of switches.

大多数交换机都需要一个 <job> 参数,该参数将设置为作业的显示名称或 GUID。Most switches require a <job> parameter, which you set to the job's display name, or GUID. 作业的显示名称不必是唯一的。A job's display name doesn't have to be unique. /Create/list开关返回作业的 GUID。The /create and /list switches return a job's GUID.

默认情况下,你可以访问你自己的作业的信息。By default, you can access information about your own jobs. 若要访问其他用户的作业信息,你必须拥有管理员权限。To access information for another user's jobs, you must have administrator privileges. 如果作业是在提升的状态下创建的,则必须从提升的窗口中运行 bitsadmin ;否则,你将拥有该作业的只读访问权限。If the job was created in an elevated state, then you must run bitsadmin from an elevated window; otherwise, you'll have read-only access to the job.

许多开关对应于 BITS 接口中的方法。Many of the switches correspond to methods in the BITS interfaces. 有关可能与使用开关相关的其他详细信息,请参阅相应的方法。For additional details that may be relevant to using a switch, see the corresponding method.

使用以下开关创建作业、设置和检索作业的属性,以及监视作业的状态。Use the following switches to create a job, set and retrieve the properties of a job, and monitor the status of a job. 有关演示如何使用其中一些开关执行任务的示例,请参阅 bitsadmin 示例For examples that show how to use some of these switches to perform tasks, see bitsadmin examples.

可用开关Available switches