FTP的PowerShell位::找不到驱动器

FTP的PowerShell位::找不到驱动器,ftp,powershell-3.0,file-transfer,microsoft-bits,Ftp,Powershell 3.0,File Transfer,Microsoft Bits,看到了BITS用于从http地址以及常规windows文件共享传输文件的示例后,我想我应该测试从ftp拉入和推入。我使用了以下powershell命令: Start-BitsTransfer ` -Source ftp://username:password@ftp.somewhere.com/file.zip ` -Destination c:\temp\file.zip Start-BitsTransfer ` -Source c:\temp\file2.zip ` -Destinatio

看到了BITS用于从http地址以及常规windows文件共享传输文件的示例后,我想我应该测试从ftp拉入和推入。我使用了以下powershell命令:

Start-BitsTransfer `
-Source ftp://username:password@ftp.somewhere.com/file.zip `
-Destination c:\temp\file.zip

Start-BitsTransfer `
-Source c:\temp\file2.zip `
-Destination ftp://username:password@ftp.somewhere.com/file2.zip
在这两种情况下,我都出现了错误:

Start-BitsTransfer : Cannot find drive. A drive with the name 'ftp' does not exist.
At c:\temp\bits2ftp.ps1:3 char:1
+ Start-BitsTransfer `
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (ftp:String) [Start-BitsTransfer], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : DriveNotFound,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand
因此,我认为这是不可能的。。。不过,我想我会在这里发布,以防有办法做到这一点(例如,它是否在某些ftp服务器上工作)


我也在这里发帖,因为我以前没有看到任何人尝试过这个,所以我想我会提供一个谷歌点击,让下一个想知道的人知道。

据我所知,FTP目前不受支持

HTTP和HTTPS下载服务器要求:

HTTP和HTTPS上载服务器(IIS)要求: