Remoting runs PowerShell commands or management operations on another computer and returns the results to your local shell. The command executes remotely, so you need not install every administrative module on your own computer. section 13.0 section 13.1
Use remoting in two main ways:
- Use one-to-one remoting to enter a command-line session on one computer. Run commands there as though you were using that computer’s PowerShell, with less overhead than Remote Desktop Connection. section 13.5
- Use one-to-many remoting with Invoke-Command to run the same command on several computers and collect their results. section 13.0
- Use remoting as a background job to distribute work across computers. Commands can run in parallel, with up to 32 targets contacted at once by default. section 14.5
Enter-PSSession -HostName Ubuntu1 -UserName tylerl Enter-PSSession -ComputerName SRV2 -UserName contoso\tylerl
Choose -HostName for SSH connections or -ComputerName for WinRM connections, then authenticate with the appropriate account. section 13.5
Practice remote administration
Connect to one computer, retrieve process information from one or more computers, find the ten newest files in the home directory, and inspect PSVersion remotely. For related commands that must share state, place them in the same invocation; each separate invocation starts PowerShell again from scratch. section 13.10 section 13.9

