Home Forums Programming Powershell Powershell script transfers entire directory? RE: Powershell script transfers entire directory?

  • It knew the start directory because it's in your $remotepath:
    $remotePath = "/MyServer/landing_zone/Folder1/"
    Just for giggles I took your $remotepath and set it up on my PC, pointing to a valid server share, with a bad where-object like.  When I checked the value of $remoteobject, it returned the share path.