add AD Powershell Tools to Exchange Management Shell

Posted on 2012-08-14
Last Modified: 2012-08-14
I am using Exchange Mangement Shell using a script to import users from a CSV...

and Get-ADUser is not supported in Exchange Management Shell.. is there a way to add the cmdlet?

The opposite is true if I try to run New-Mailbox in Powershell...

This is taking place on an Exchange 2010 server with HUB services installed.. it was this way before I got here a month ago. The Script had been manually ran at 0900 ant 1300 to import users (students) from a csv provided by the registrar's office. I am trying to automate the task to run in task scheduler.. when I come in at 0900, the task shows as still running.

[PS] C:\Windows\system32>Get-ADUser
The term 'Get-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:11
+ Get-ADUser <<<<
    + CategoryInfo          : ObjectNotFound: (Get-ADUser:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

[PS] C:\Windows\system32>
Question by:AllIntUni2000
    LVL 23

    Accepted Solution


    Import-Module activedirectory
    LVL 3

    Expert Comment

    import-module activedirectory

    Author Closing Comment

    Thank you!!!!

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now