Copying to Another Computer
A shared folder has a network address, a UNC path such as \\back-office\reports, that Test-Path, Get-ChildItem and Copy-Item use like any other path, and where there's no share, Copy-Item -ToSession and -FromSession copy a file through a remoting session made with New-PSSession and closed with Remove-PSSession.
Updated

- Category
- PowerShell
- Level
- Journeyman
- Tags
- copy-item, operating-system, powershell, pssession, shared-folder, unc-path