Complete a Background Intelligent Transfer Service (BITS) transfer job.
Syntax Complete-BitsTransfer [-BitsJob] BitsJob [-Confirm] [-WhatIf] [CommonParameters] Key -BitsJob BitsJob The BITS transfer job(s) to complete. 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.
Complete-BitsTransfer ends one or more BITS transfer jobs and then saves the files on the client computer. If an error occurs, the associated BitsJob object is written to the error pipeline.
Complete all the BITS transfer jobs that are owned by the current user:
PS C:\> Get-BitsTransfer | Complete-BitsTransfer
Complete all the BITS transfer jobs on the computer:
PS C:\> $myJob = Get-BitsTransfer -AllUsers
PS C:\> Complete-BitsTransfer -BitsJob $myJob
Complete the BITS transfer job called 'SS64':
PS C:\> Get-BitsTransfer -Name SS64 | Complete-BitsTransfer
“Writing is not like painting where you add. It is not what you put on the canvas that the reader sees. Writing is more like a sculpture where you remove, you eliminate in order to make the work visible. Even those pages you remove somehow remain” ~ Elie Wiesel (American Writer.)
Remove-BitsTransfer - Delete a BITS transfer.
BITS PowerShell cmdlets