Skip to content

clarify that disconnect only works with WSMan #2344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ continue to run while the session is disconnected.

The Disconnected Sessions feature is available only when the computer at the
remote end of a connection is running Windows PowerShell 3.0 or a later
version of Windows PowerShell.
version of Windows PowerShell and using the WSMan transport.

The Disconnected Sessions feature allows you to close the session in which a
PSSession was created, and even close Windows PowerShell, and shut down the
Expand Down
2 changes: 2 additions & 0 deletions reference/6/Microsoft.PowerShell.Core/Disconnect-PSSession.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ The **Disconnect-PSSession** cmdlet disconnects a Windows PowerShell session (**
As a result, the **PSSession** is in a disconnected state.
You can connect to the disconnected **PSSession** from the current session or from another session on the local computer or a different computer.

Note that this capability only works with PSSessions using the WSMan transport.

The **Disconnect-PSSession** cmdlet disconnects only open **PSSessions** that are connected to the current session.
**Disconnect-PSSession** cannot disconnect broken or closed **PSSession** objects, or interactive **PSSession** objects started by using the Enter-PSSession cmdlet, and it cannot disconnect **PSSession** objects that are connected to other sessions.

Expand Down