PowerTip: Run Remote Command in Disconnected Session


Summary: Use Windows PowerShell to run a remote command in a disconnected session.

Hey, Scripting Guy! Question How can I run a remote command in a disconnected session?

Hey, Scripting Guy! Answer Invoke-Command -ComputerName S1 -Scriptblock {<commands>} -InDisconnectedSession 

Comments (1)

  1. Brian Wilhite says:

    PowerTips are awesome, thanks for sharing Ed!

Skip to main content