It seems like a much better solution to just use BitsTransfer, it seems to come OOTB on most Windows machines with PowerShell 2.0 or greater.
Import-Module BitsTransfer
Start-BitsTransfer -Source $Source -Destination $Destination -Description "Backup" -DisplayName "Backup"
More Related Contents:
- String handling from Powershell script
- How to create a zip archive with PowerShell?
- Use PowerShell to run virus scan on multiple servers
- Unable to access UNC Paths in Powershell remote session
- Fastest Way to get a uniquely index item from the property of an array
- PowerShell script to check an application that’s locking a file?
- Lambda Expression in Powershell
- save PSCredential in the file
- How do I write a PowerShell script that accepts pipeline input?
- How do I Start a job of a function i just defined?
- A better way to check if a path exists or not in PowerShell [closed]
- Create directory if it does not exist
- PowerShell – get process ID of called application
- Delete all files and folders but exclude a subfolder
- Start-Process with PowerShell.exe exhibits different behavior with embedded single quotes and double quotes
- Powershell with exchange– How do I append all verbose output to a file
- How to handle command-line arguments in PowerShell
- How to send email with PowerShell
- How to split string by string in Powershell
- Powershell: Colon in commandlet parameters
- Passing PowerShell variables into a script block
- Why is $false -eq “” true?
- powershell function switch param with string array
- Is there an alternative to GUID when using msiexec to uninstall an application?
- Can’t install nuget package because of “Failed to initialize the PowerShell host”
- PowerShell Capture Write-Host output
- How to run powershell command in batch file
- Is there a PowerShell equivalent of `paste` (i.e., horizontal file concatenation)? [duplicate]
- Getting “Can’t find the drive. The drive called ‘IIS’ does not exist.”
- Prevent trailing newline in PowerShell Out-File command