Items

ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object
 IISTracer, real-time IIS monitor
 Huge ASP upload - upload files with progress.
          Property, read only 
          Member of  UserManager.Groups 

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

  Other links for Items

Methods of Groups class

Properties of Groups class

UserManager.Groups

Contains methods and properties for enumerating groups.

UserManager

Easy to use classes to create, delete and manage local and remote user accounts, groups, servers and domains in the Windows NT (2000/XP) environment. Simple work with user accounts and groups from VBA, VBS/JS, ASP and T-SQL.

© 1996 – 2006 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 2.03.68