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
71 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 15

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  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 article outlines the process to identify and resolve account lockout in an Active Directory environment.
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

756 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