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-AD User
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>
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-AD
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
import-module activedirectory
ASKER
Thank you!!!!