Hi Team,
Greetings!
I have a very weird problem but not sure if it's in C# code issue or in Active Directory replication issue. We have a C# SSIS code/script to fetch AD user Properties and update SQL Database. Recent times it's throwing null value exceptions for UserAccountControl.
I changed the C# code to query specific Domain Controller and value returned as expected - This is fine as a workaround
So I queried all DC using PowerShell to find replication issue and it returned value (512).
I checked msDS-User-Account-Control-Computed it has Integer 0.
Indeed it has some issues in AD but as per the logic it's not null some value needs to be returned.
Note: The issue relies in trusted domain account and all DC are 2003 server = Forest mode is 2003 as well. The Code runs from 2008 R2 Server
On which condition UAC returns null value?
Regards Chen V [MCTS SharePoint 2010]