MOTOBIT.COM - ASP upload, IIS utility Get primary domain user accounts.

Sample for UserManager.Domain | Changes | Purchase | Download


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

Other links for the Get primary domain user accounts. sample


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: