Start a PowerShell Remote Session to Another Windows Computer
PowerShell remoting uses WinRM to create an interactive session on another Windows computer. Use Windows PowerShell or PowerShell in a supported terminal/editor; PowerShell ISE is a legacy Windows PowerShell 5.1 tool and should not be the design target for PowerShell 7 workflows.
Prepare the remote computer
Enable-PSRemoting -ForceRun this in an elevated session and ensure firewall/network policy allows WinRM only from appropriate management networks.
Connect
Enter-PSSession -ComputerName SERVER01 -Credential CONTOSO\AdminUserWhen finished:
Exit-PSSessionWorkgroup note
Kerberos is preferred in a domain. Workgroup or IP-address connections can require HTTPS or carefully scoped TrustedHosts configuration. Avoid adding * to TrustedHosts.
For authoring modern PowerShell, use Visual Studio Code with Microsoft’s PowerShell extension rather than building new operational procedures around ISE.