Noob trying move files from one server to another server

Welcome Forums General PowerShell Q&A Noob trying move files from one server to another server

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
3 years, 9 months ago.

  • Author
    Posts
  • #24511

    Participant
    Points: 0
    Rank: Member

    Trying to move files off my local Domain PC to a work group server, using bitstransfer.

    when I run my script I receive the attached error .. The exe will launch on my local PC

    The path is correct for both the destination and source

     Import-Module bitstransfer
    $cred = Get-Credential
    $destPath = \\172.20.0.85\C$\temp\Scrutinizer-windows-installer.exe
    $sourcePath = C:\temp\Scrutinizer-windows-installer.exe
    Start-BitsTransfer -Source $sourcePath -Destination $destPath -Credential $cred
    
  • #24513

    Keymaster
    Points: 1,785
    Helping HandTeam Member
    Rank: Community Hero

    \\win-s88iqlsb980\C:\temp\Scrutinizer-windows-installer.exe

    Isn't a valid UNC. You're not showing that syntax in your example, but it's what appears in the error message.

    Also, understand that BITS isn't an SMB-based file transfer. It's an HTTP-based transfer, and the destination is expected to have a web server capable of receiving the incoming data.

  • #24515

    Participant
    Points: 0
    Rank: Member

    Thank you for the reply
    I will look into moving the files through shared folders.

  • #24516

    Participant
    Points: 21
    Rank: Member

    get-help move-item

The topic ‘Noob trying move files from one server to another server’ is closed to new replies.