October 19th, 2014

PowerTip: Get PowerShell Module by Using –FullyQualifiedName Parameter

Doctor Scripto
Scripter

Summary: Learn how to get a specific Windows PowerShell module by using the –FullyQualifiedName parameter.

Hey, Scripting Guy! Question How can I look at the specific version of a Windows PowerShell module?

Hey, Scripting Guy! Answer In Windows PowerShell 4.0, you can do this by using the –FullyQualifiedName parameter of the 
           Get-Module cmdlet. You specify a hash table that contains the name and version of the module
           (you can also use the GUID). Here is an example using my Windows PowerShell ISE module:

Get-Module –FullyQualifiedName @{modulename="powershellisemodule";moduleversion="4.0"}

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.