Suspend-BitsTransfer

Suspend a Background Intelligent Transfer Service (BITS) transfer job.

Syntax
      Suspend-BitsTransfer [-BitsJob] BitsJob[]
         [-Confirm] [-WhatIf] [CommonParameters]

Key
   -BitsJob BitsJob[]
       The BITS transfer job(s) to suspend.
       Pipe a value to this parameter from other cmdlets that return BitsJob objects, such as Get-BitsTransfer.

   -Confirm
       Prompt for confirmation before executing the command.

   -WhatIf
       Describe what would happen if you executed the command, without actually executing the command.

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable,
       -OutBuffer -OutVariable.

Suspend-BitsTransfer suspends (pauses) one or more BITS transfer jobs. If the transfer is already suspended, the cmdlet does nothing. Restart the BITS transfer job with Resume-BitsTransfer.

Examples

Suspend all the BITS transfer jobs that are owned by the current user:

PS C:\> Get-BitsTransfer | Suspend-BitsTransfer

Suspend all the BITS transfer jobs on the computer:

PS C:\> $allJobs = Get-BitsTransfer -AllUsers
PS C:\> Suspend-BitsTransfer -BitsJob $allJobs

“Architecture is music in space, as it were a frozen music” ~ Friedrich Wilhelm Joseph von Schelling

Related PowerShell Cmdlets:

Resume-BitsTransfer - Resume a suspended BITS transfer.
BITS PowerShell cmdlets


 
Copyright © SS64.com 1999-2019
Some rights reserved