Link to home
Start Free TrialLog in
Avatar of vijaygotur
vijaygoturFlag for India

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.
Avatar of Elmar Koschka
Elmar Koschka
Flag of Germany image

Please use following:

Get-QADUser | foreach { Get-Mailbox $_.name -ErrorAction silentlyContinue }
Or
Get-User | Get-Mailbox -errorAction silentlyContinue

I hope it helps?!
Avatar of vijaygotur

ASKER

Hi,
I can see few attributes are missing like homemdb, i want all attributes from both.
ASKER CERTIFIED SOLUTION
Avatar of suriyaehnop
suriyaehnop
Flag of Malaysia 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
Thanks i got required solution