MOTOBIT.COM - ASP upload, IIS utility Domain Class, Member of UserManager

Member of  UserManager Use Domain object | Changes | Purchase | Download

Description

Domain class.

Object model

Domain - Domain class.
 
Users - Collection of user accounts (Domain/Server accounts), (Users property, Collection of domain users.)
 
Servers - WindowsNT servers that are visible in the domain. (Servers property, Collection of servers that are visible in the specified domain.)
 
 
Server - Properties of servers, enumerating users, logon/logoff to the user administrator account. (Item property, Returns one server from the collection.)
 
   
Groups - Contains methods and properties for enumerating groups. (Groups property, Collection of global groups)
 
   
 
Group - Object for managing local or global group. (Item property, Returns specified group from collection.)
 
   
   
GroupMembers - Contains methods for enumerating and selecting user accounts from the group. (Members property, Members that belongs to the group.)
 
   
     
User - Properties of the user account, and methods for creating, deleting and selecting users. (Item property, Returns one group member.)
 
   
     
 
RasUser - RAS privileges and call-back phone number for the user. (Ras property, Enables setting of the RAS privileges and call-back phone number for the user.)
 
   
     
 
Groups - Contains methods and properties for enumerating groups. (Groups property, Get a list of groups that an NT user belongs to .)
 
   
     
 
Groups - Contains methods and properties for enumerating groups. (LocalGroups property, List of local groups to which a specified user belongs.)
 
   
     
Group - Object for managing local or global group. (Item property, Returns one group member.)
 
   
Groups - Contains methods and properties for enumerating groups. (LocalGroups property, Collection of local groups objects)
 
   
Users - Collection of user accounts (Domain/Server accounts), (Users property, Collection of User objects from the server.)
 
Groups - Contains methods and properties for enumerating groups. (Groups property, Collection of domain groups.)

Properties

GroupsCollection of domain groups.
Groups, RO
NameName of the domain.
String, RO
PDCPrimary controller for the domain.
Server, RO
ServersCollection of servers that are visible in the specified domain.
Servers, RO
UsersCollection of domain users.
Users, RO

Examples

Get primary domain user accounts.

  'Get UserManager.Server object
  Set S = CreateObject("UserManager.Server")

  'Get PDC
  Set PDC = S.Domain.PDC

  'List primary domain user accounts.
  Wscript.Echo "Name", "LastLogon"
  For Each User In PDC.Users
    Wscript.Echo User.Name, User.LastLogon
  Next

List of WindowsNT servers in the primary domain.

  'Get UserManager.Server object
  Set S = CreateObject("UserManager.Server")

  'List of the servers.
  For Each C In S.Domain.Servers
    Wscript.Echo C.Name
  Next

Used in

Server.Domain

Other links for Domain class

ActiveX UserManager classes

User, Users, Group, Server, Groups, GroupMembers, RasUser, Servers, Domain

ActiveX UserManager enums

UsersFilter, GroupAttributes, UserFlags, UserPrivileges, ServerTypes, LogonTypes, LogonProviders, OperatorPrivileges, RasPrivileges, SIDNameUse

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