The GetServers method returns a list of all currently defined Membership virtual server instances and their associates names.
IDL Definition
HRESULT GetServers(
[in,out] VARIANT* plVirtServIds,
[in,out] VARIANT* pComments
);
Parameters
plVirtServIds
on return, a SAFEARRAY of LONG variables holding Membership virtual server instance identifiers.
pComments
on return, a SAFEARRAY of BSTR variables holding Membership virtual server instance names
Return Values
A standard HRESULT value
Example
Set ObjCreator = CreateObject("ObjCreator.ObjCreator.1")
Set BrokServers = ObjCreator.CreateObjAuth("MemAdmin.BrokServers.1")
call BrokServers.GetServers(Ids, Names)
For i = LBound(Ids) to UBound(Ids)
wscript.echo Ids(i)
wscript.echo Names(i)
Next