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
40 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
Comment Utility
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
Comment Utility
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
Comment Utility
This is great!! thank yo so much!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
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 tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now