MOTOBIT.COM - ASP upload, IIS utility Items Property, read only of Groups class

Property, read only | Member of  UserManager.Groups | Changes | Purchase | Download

Description

Returns all groups in the collection as an safearray.

Syntax

vItems = Groups.Items

Returns

Variant

Examples

Enumerate server groups

Wscript.Echo "Server groups :"

Dim Server, A, I
Set Server = CreateObject("UserManager.Server")

'Put all users to an array
A = Server.Groups.Items

'Go through the array
For i=0 To UBound(A)
   Wscript.Echo A(I).Name
Next


Wscript.Echo "Server local groups :"

Set Server = CreateObject("UserManager.Server")

'Put all users to an array
A = Server.LocalGroups.Items

'Go through the array
For i=0 To UBound(A)
   Wscript.Echo A(I).Name
Next

See also

Users.Items, GroupMembers.Items, Servers.Items

Other links for Items

Methods of Groups class

Add, SelectServer

Properties of Groups class

Count, Item, Items, Server

UserManager.Groups

Contains methods and properties for enumerating groups.

UserManager

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: info@pstruh.cz