PowerShell Remoting: Invoke-Command and Enter-PSSession
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.
Updated

- Category
- PowerShell
- Level
- Freelancer
- Tags
- enter-pssession, invoke-command, localhost, operating-system, powershell, remoting, script-block, winrm