Powershell Tip #21: Import specific cmdlets from a module

By | August 29, 2015

Tip: You can import a cmdlet from a module (instead of importing all cmdlets).

Import-Module -Name ActiveDirectory -Cmdlet Get-ADUser


Note: To import several cmdlets, just separate them with a comma.

Import-Module -Name ActiveDirectory -Cmdlet Get-ADUser, Get-ADObject


Leave a Reply

Your email address will not be published.