Remoting
Remoting: PowerShell Remoting: Invoke-Command and Enter-PSSession, Copying to Another Computer.
Updated
- PowerShell Remoting: Invoke-Command and Enter-PSSession (Freelancer): Invoke-Command carries a script block to one computer or many at once and brings each answer back with a PSComputerName, Enter-PSSession moves your prompt onto another computer until Exit-PSSession, and both travel over WinRM between Windows PCs at work, or over SSH with -HostName at home and on a Mac or Linux.
- Copying to Another Computer (Journeyman): 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.