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
77 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
[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
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

Does Powershell have you tied up in knots?

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

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 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