PowerTip: Debug Script on Remote Computer
Summary: Use Windows PowerShell to debug a script on a remote computer. How can I use Windows PowerShell to debug a script on a remote computer? Use the debugging features in the Windows PowerShell 4.0 console:1. Use Enter-PSSession to start an interactive session on the remote computer:PS C: > Enter-PSSession -ComputerName ...