用 Start-BitsTransfer 下载文件

使用后台智能传输服务进行可恢复下载。

Windows网络管理员PowerShell下载低风险
运行 Start-BitsTransfer -Source <网址> -Destination <路径> 下载文件。

01命令

命令
$ Start-BitsTransfer -Source https://example.com/large.zip -Destination C:\large.zip

02作用说明

BITS 在后台传输、断网后可恢复,并可限制带宽,因此在不稳定链路上比一次性 HTTP 请求更适合大文件。由于是 cmdlet,它可直接嵌入定时与无人值守脚本。

03风险

风险低风险
使用条件Windows 10/11 with PowerShell 5.1 or PowerShell 7+
!注意: BITS 任务在用户上下文运行,未加管理时可能被他人看到;长时间传输请用 -Asynchronous 与作业 cmdlet。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • Start-BitsTransfer
    Microsoft Learn · vendor-doc · 2026-09-20
    依据: Transfers files with BITS, which resumes on interruption.

最后验证: 2026-10-13 · 分类: 网络

06相关方案