<p>I'm trying to set the group type for a new Active Directory Entry via VB.NET and DirectoryServices to create a distribution list.</p>

<p>How do I access the ADS_GROUP_TYPE enumerations?</p>

<p>Specifically I'm after ADS_GROUP_TYPE_GLOBAL_GROUP.</p>

I don't think I can access the enumerations via .NET so instead I created the specific constant I needed. For what it's worth here's my code:
```
```
Const ADS_GROUP_TYPE_GLOBAL_GROUP As Object = &H2
        adNewGroup.Properties("groupType").Value = ADS_GROUP_TYPE_GLOBAL_GROUP
```
```
Refactoring welcome!