Solved

Powershell command or script

Posted on 2012-03-30
4
590 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Elmar-H
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 500 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

728 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