LogonUser

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.
          Method 
          Member of  RegEdit.Server 

Description
Attempts to perform a user logon operation and impersonates a user. You specify the user with a user name and domain, and authenticate the user with a clear-text password.
Syntax
Server.LogonUser (UserName as String, Password as String, [Domain as String], [LogonType as LogonTypes = ltInteractive])
 
Where Type Optional Default Description
 UserName  String      
 Password  String      
 Domain  String  yes     
 LogonType  LogonTypes  yes  ltInteractive   
Remarks
WWW service is usually running under account with guest privileges and the user account cannot access registry keys/values. You can logon to account with apropriate privileges and read/change registry keys and values.
Examples
 W3SVC registry parameters from ASP.  
  Set S = CreateObject("RegEdit.Server")

  'To get access to registry from ASP
  S.LogonUser "Administrator", "", "Domain"
  Response.Write "W3SVC registry parameters : <br>"
  For Each Value In S.Keys("SYSTEM\CurrentControlSet\Services\W3SVC\Parameters").Values
    Response.Write "<b>" & Value.Name & "</b> : " & Value & "<br>"
  Next
  S.RevertToSelf
See also
  Other links for LogonUser
Properties of Server class
Server/computer for the ActiveX regedit.
You can use GetKey method to get a specified key from the server.
Keys property returns a collection containing subkeys of a connected key (See Connect method).
Intuitive, easy to use COM interface to windows registry. Set of classes to read/enumerate/modify windows registry keys and values from ASP, VBS and T-SQL.

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