MOTOBIT.COM - ASP upload, IIS utility LogonUser sample

Sample for UserManager.Server.LogonUser | Changes | Purchase | Download


LogonUser sample 
Dim Server, User

Set Server = CreateObject("UserManager.Server")

Server.LogonUser "Administrator", ""
'Create a new user
Set User = Server.Users.Add("NewUser", "UserPassword")
'Add the new user to the group
User.AddToLocalGroup "Guests"
'Logon new user
Server.LogonUser "NewUser", "UserPassword"
'Some other operations under new user account


Other links for the LogonUser sample sample


Properties of servers, enumerating users, logon/logoff to the user administrator account.


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: