Complete-BitTransfer

I started a few Bit jobs by using Start-BitTransfer and then the computer frozen and reboot.

After that, I run Get-BitTransfer and the jobs are still in 'Transferring' JobState and eventually in 'Transferred'.

But when I run Get-BitTransfer | Complete-BitTransfer, I get the below. any suggestion? Thanks

Complete-BitsTransfer : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At line:1 char:20
+ Get-BitsTransfer | Complete-BitsTransfer
+                    ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Complete-BitsTransfer], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.BackgroundIntelligentTransfer.Management.CompleteBitsTransferCommand
 


  • Edited by Ian3 9 hours 4 minutes ago
May 30th, 2015 4:54pm

 Get=BitTransfer | Complete-BitTransfer,

Why the equal sign.  The command does not use an equal sign.

Free Windows Admin Tool Kit Click here and download it now
May 30th, 2015 5:59pm

sorry, it was a typo when I posted the question. I made correction.
May 30th, 2015 6:04pm

The commands are:

Get-BitsTransfer | Complete-BitsTransfer

If there are no pending the command completes with no message.

Try just:

Get-BitsTransfer

What do you see?

Free Windows Admin Tool Kit Click here and download it now
May 30th, 2015 6:09pm

JobId                                  DisplayName   TransferType JobState     OwnerAccount
-----                                  -----------   ------------ --------     ------------
69e21f27-6a60-409c-be8e-94910406311b   BITS Transfer Download     Transferred  QingYuan\Ian
18c8782b-f79f-4822-8bd5-3788a5eaefa7   BITS Transfer Download     Transferred  QingYuan\Ian
e1165429-4cd9-4466-8818-f01950516a55   BITS Transfer Download     Transferred  QingYuan\Ian
bb6cb6a0-a91c-494b-ad00-02b8eb5875db   BITS Transfer Download     Transferred  QingYuan\Ian
25d89166-d44a-4c2b-9b90-d0259d98eda6   BITS Transfer Download     Transferred  QingYuan\Ian
  • Edited by Ian3 8 hours 30 minutes ago
May 30th, 2015 6:34pm

What happens if you do this:

get-bitstransfer |?{$_.Jobsstate -ne 'transfered'}

Free Windows Admin Tool Kit Click here and download it now
May 30th, 2015 6:48pm

JobId                                  DisplayName   TransferType JobState     OwnerAccount
-----                                  -----------   ------------ --------     ------------
22d0e62f-2a2d-4be0-808f-8ccfe156763b   BITS Transfer Download     Error QingYuan\Ian
a19670f5-cd12-4e5a-8221-884aeb8f5d64   BITS Transfer Download     Error QingYuan\Ian
May 30th, 2015 7:33pm

get-bitstransfer |?{$_.Jobsstate -ne 'transfered'}|Remove-BitsTransfer

Free Windows Admin Tool Kit Click here and download it now
May 30th, 2015 7:36pm

still the same error after ran

Get-BitsTransfer | ? { $_.JobState -ne 'Transferred' } | Remove-BitsTransfer

and Get-BitsTransfer | Complete-BitsTransfer

May 30th, 2015 8:46pm

Try this:

get-bitstransfer |Remove-BitsTransfer

Free Windows Admin Tool Kit Click here and download it now
May 30th, 2015 8:50pm

Get-BitsTransfer displays 24 lines with 'Transferred' JobState and there are 24 files with .tmp extension in the folder.  Will all of them be deleted after run Get-BitsTransfer | Remove-BitsTransfer ?

May 30th, 2015 9:00pm

Yes -but your errors should go away.

In the end this is not a scripting issue.  The BITS queues have been corrupted ot the subsystem is misconfigured.  THis may clear the sisue.

You should contact Microsoft support to help you fix this.

Free Windows Admin Tool Kit Click here and download it now
May 30th, 2015 9:04pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics