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.
vijaygoturAsked:
Who is Participating?
 
suriyaehnopCommented:
Get-AdUser -Identity <Username> -Properties *

To get information of attributes properties

Get-ADUser -Identity <Username> -Properties * | Get-Member
0
 
Elmar KoschkaIT System EngineerCommented:
Please use following:

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

I hope it helps?!
0
 
vijaygoturAuthor Commented:
Hi,
I can see few attributes are missing like homemdb, i want all attributes from both.
0
 
vijaygoturAuthor Commented:
Thanks i got required solution
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.