# Remoting

Remoting: PowerShell Remoting: Invoke-Command and Enter-PSSession, Copying to Another Computer.

Updated: November 10, 2026

1. [PowerShell Remoting: Invoke-Command and Enter-PSSession](https://www.ask-codey.com/lessons/powershell-remoting) (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.
2. [Copying to Another Computer](https://www.ask-codey.com/lessons/powershell-copy-to-session) (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.

Source: https://www.ask-codey.com/courses/powershell-in-depth/topics/powershell-remoting
