vijaygotur
asked on
Powershell command or script
I am looking for script or command to Fetch both AD user object and Exchange all attributes together in same powershell command/script. I can use get-aduser for AD and get-mailbox for exchange but togrther is not working.
ASKER
Hi,
I can see few attributes are missing like homemdb, i want all attributes from both.
I can see few attributes are missing like homemdb, i want all attributes from both.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks i got required solution
Get-QADUser | foreach { Get-Mailbox $_.name -ErrorAction silentlyContinue }
Or
Get-User | Get-Mailbox -errorAction silentlyContinue
I hope it helps?!