MOTOBIT.COM - ASP upload, IIS utility Add Method of Groups class

Method | Member of  UserManager.Groups | Changes | Purchase | Download


Adds a new group to the server.


Set NewGroup = Groups.Add (GroupName as String, [Comment as String], [Attributes as GroupAttributes = ga_DEFAULT])

Where Type Optional Default Description
 GroupName  String      
 Comment  String  yes     
 Attributes  GroupAttributes  yes  ga_DEFAULT   


Group - Object for managing local or global group.


Enumerate all groups and account

  Set Server = CreateObject("UserManager.Server")
  Server.Select ""
  For Each Group In Server.Groups
    Debug.Print Group.Name
    For Each User In Group.Users
      Debug.Print Group.Name, ",", User.Name
    Next User
  Next Group

Other links for Add

Methods of Groups class

Add, SelectServer

Properties of Groups class

Count, Item, Items, Server


Contains methods and properties for enumerating groups.


ActiveX UserManager is easy to use COM component with classes to create, delete and manage local and remote user accounts, groups, servers and domains in the Windows NT (2000/XP) environment. You can simple work with user accounts and groups from VBA, VBS/JS, ASP and T-SQL programming environment.

© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: