none
PowerShell SCP RRS feed

  • Question

  • Does anyone know how to scp files or securely copy files using Powershell? Does Powershell have this capability?

    John R Hartman

    Monday, January 26, 2015 7:49 PM

Answers

  • Thanks I'll take a look.

    John R Hartman

    You can either use the code possted or write your own script. PowerSHell and Net allow for FTPS transfers.

    $ftp=[System.Net.FtpWebRequest]::Create('ftp://ftp.microsoft.com/bussys/mspress/Interdev/Appendb.zip')
    $ftp.EnableSsl=$false
    $ftp.Credentials.UserName='anonymous'
    $ftp.Credentials.Password='PasSW0rd'
    $ftp.GetResponse()


    ¯\_(ツ)_/¯


    • Edited by jrv Tuesday, January 27, 2015 1:08 PM
    • Marked as answer by GEOCSMB Friday, January 30, 2015 2:34 PM
    Tuesday, January 27, 2015 1:08 PM

All replies