Hi
I'm having a little trouble mail-enabling af universal distribution group in
VB.NET 2.0
The code:
NewGroupDE = BaseDE.Children.Add("cn=" & GroupName, "group")
NewGroupDE.Properties.Item("sAMAccountName").Value = GroupName
NewGroupDE.Properties.Item("displayName").Value = GroupName
NewGroupDE.Properties.Item("groupType").Value = &H8
NewGroupDE.Properties.Item("mailNickname").Value = GroupName.Replace(" ",
"")
NewGroupDE.CommitChanges()
NewGroupDE.NativeObject.Mail = SMTP
NewGroupDE.NativeObject.MailEnable()
NewGroupDE.CommitChanges()
When it execute the MailEnable command (2nd last line), i got an error
claiming that MailEnable doesn't exist on this object.
What am I missing ...
Best regards,
/Anders
|