October 22nd, 2012

PowerTip: Find WMI Association Classes Related to Sessions

Doctor Scripto
Scripter

Summary: Use a Windows PowerShell 3.0 cmdlet to find WMI classes related to sessions.

Hey, Scripting Guy! Question How can you use Windows PowerShell 3.0 to easily find WMI association classes related to sessions?

        Hey, Scripting Guy! AnswerUse the Get-CIMClass cmdlet and specify the association qualifier name, and then use a wildcard to find the WMI classes containing the letters session.

                     Get-CimClass -QualifierName association -ClassName *session*

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.