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

import-module-activedirectory-cmdlet-parameter

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

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


previous-buttonnext-button

2 thoughts on “Powershell Tip #21: Import specific cmdlets from a module

  1. Pingback: Powershell Tip #20: Switch from Server GUI to Server Core | Powershell Guru

  2. Pingback: Powershell Tip #22: Find GC (Global Catalog) | Powershell Guru

Leave a Reply

Your email address will not be published. Required fields are marked *