Link to home
Start Free TrialLog in
Avatar of AllIntUni2000
AllIntUni2000

asked on

add AD Powershell Tools to Exchange Management Shell

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>
ASKER CERTIFIED SOLUTION
Avatar of Stelian Stan
Stelian Stan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
import-module activedirectory
Avatar of AllIntUni2000
AllIntUni2000

ASKER

Thank you!!!!