Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Powershell command or script

Posted on 2012-03-30
4
Medium Priority
?
592 Views
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.
0
Comment
Question by:vijaygotur
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Elmar Koschka
ID: 37788701
Please use following:

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

I hope it helps?!
0
 

Author Comment

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

Accepted Solution

by:
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
0
 

Author Closing Comment

by:vijaygotur
ID: 37799439
Thanks i got required solution
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Eseutil Hard Recovery is part of exchange tool and ensures Exchange mailbox data recovery when mailbox gets corrupt due to some problem on Exchange server.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

963 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