In C# I write...
DirectoryEntry computer = GetComputer();
computer.Properties["managedBy"].Value = null;
computer.CommitChanges();
When I make the call to CommitChanges() it throws a COM exception
A constraint violation occurred. (Exception from HRESULT: 0x8007202F)
something is wrong with setting the "managedBy" property to null, but how else do you clear the property?