PIRATED 20130913 2141

PIRATED 20130913 2141

NOTE: This content appears to have been plagiarized. Please leave a comment or email tnwiki at Microsoft (with a link to this article) if we are mistaken. The content was pulled from the following source:
The community rules state:
  • "Someone else has relevant content and you want to help them share it with the world. It's a nice thought, but do not copy other people's content to the Wiki, even if the owner said it was OK."



Summary: Learn how to identify Windows PowerShell 3.0 disconnected sessions.

Hey, Scripting Guy! Question How can I find out which Windows PowerShell 3.0 sessions are disconnected?

Hey, Scripting Guy! Answer Use the Get-PSSession cmdlet and look for sessions that have a state of disconnected, as shown here.

PS C:\> Get-PSSession

 

Id Name ComputerName State ConfigurationName Availability

-- ---- ------------ ----- ----------------- ------------

1 Session1 dc3 Opened Microsoft.PowerShell Available

3 Session2 dc2 Disconnected Microsoft.PowerShell None

Leave a Comment
  • Please add 7 and 5 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Carsten Siemens edited Revision 3. Comment: Pirated Content - see my comment

  • Patris_70 edited Revision 1. Comment: deleted (en-US) title

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Patris_70 edited Revision 1. Comment: deleted (en-US) title

  • Carsten Siemens edited Revision 3. Comment: Pirated Content - see my comment

  • NOTE: This article was reported as Pirated/Plagiarized Content (content you didn't write) and will be removed. Please do not steal content from others. If you feel we are mistaken, please leave a comment or email tnwiki at Microsoft with a link to this article and with clear and detailed reasons why you own the content or have explicit permission from the author.

    Content was taken from: "PowerTip: Identify Disconnected PowerShell Sessions"

    Published by The Scripting Guys on 22 Nov 2012

    blogs.technet.com/.../powertip-identify-disconnected-powershell-sessions.aspx

Page 1 of 1 (3 items)