Monday, July 2, 2012

Find Specific commands in a loaded module in PowerShell.

 

Hi,

Today i am working with few cmdlets and loaded modules in powershell and then i need to find a cmdlet but rather then find it on whole loaded module i want to search it in to a specific module.

for example.

To find all cmdlets which have "ADD" word,   we may run this command.

 Get-Command -Name *add*
02-07-2012 11-48-21 
When we run the above command it list all cmdlets which have "ADD" in  them. but out target is to find all cmdlet  which have "Add" word in it  on in to a specific module, to achieve it just add -Module and a Module Name . simple 
Get-Command -Name *add* -Module ActiveDirectory 

02-07-2012 11-51-32


Simple. Now it showing all cmdlets which have "Add" word. :)


Thanks


Thanks!


Aman Dhally


Buy-More-Twitter-Followers   4fb29548b6adc

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.