Solved

Is there a tool or command that we can use to check if the following attributes has been populated?

Posted on 2016-09-22
3
48 Views
Last Modified: 2016-09-23
Is there a tool or command that we can use to check if the following attributes has been populated?

msExchMasterAccountSid = TargetAccount objectSid
msExchUserAccountControl – updated to 2
msExchRecipientTypeDetails will be updated to a value of 2
0
Comment
Question by:creative555
3 Comments
 
LVL 14

Expert Comment

by:Todd Nelson
ID: 41811600
Try this from a DC using an elevated command prompt...

csvde.exe -l DisplayName,objectClass,userPrincipalName,msExchMasterAccountSid,msExchUserAccountControl,msExchRecipientTypeDetails -f exch-attribs.csv

Open in new window

0
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 41811620
Following PowerShell command will export the accounts if any of the attributes are not updated correctly..
Import-Module Activedirectory
Get-AdUser -F * -Pr * | ?{!($_.msExchMasterAccountSid) -or $_.msExchUserAccountControl -eq "2" -or $_.msExchRecipientTypeDetails -eq  "2"} | Select Name,SamAccountName,msExchMasterAccountSid,msExchUserAccountControl,msExchRecipientTypeDetails | Export-Csv C:\report.csv -nti

Open in new window

PS : Code just check if the msExchMasterAccountSid values exist or not..
0
 

Author Closing Comment

by:creative555
ID: 41812582
This is great!! thank yo so much!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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 …

773 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