PowerTip: Run Remote Command in Disconnected Session

Doctor Scripto

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 

0 comments

Discussion is closed.

Feedback usabilla icon