Powershell command or script

Posted on 2012-03-30
Medium Priority
Last Modified: 2012-08-13
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.
Question by:vijaygotur
  • 2

Expert Comment

by:Elmar Koschka
ID: 37788701
Please use following:

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

I hope it helps?!

Author Comment

ID: 37788841
I can see few attributes are missing like homemdb, i want all attributes from both.
LVL 19

Accepted Solution

suriyaehnop earned 2000 total points
ID: 37794377
Get-AdUser -Identity <Username> -Properties *

To get information of attributes properties

Get-ADUser -Identity <Username> -Properties * | Get-Member

Author Closing Comment

ID: 37799439
Thanks i got required solution

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

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.

Join & Write a Comment

Migrating Exchange data from one Exchange Server to another server is complicated. Though Exchange administrators can try manual methods to migrate their data from one version of Exchange to another, these manual methods are not that reliable. That…
In migration, Powershell can be a very crucial tool to achieve success and finalize projects within deadline or even fix issues. X500 or Legacy Exchange DN Attribute can cause lots of issue during the migration
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question