MOTOBIT.COM - ASP upload, IIS utility RevertToSelf Method of Server class

Method | Member of  RegEdit.Server | Changes | Purchase | Download

Description

Terminates the impersonation of a client application (or ASP script).

Syntax

Server.RevertToSelf

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

Server.LogonUser

Other links for RevertToSelf

Methods of Server class

AddConnection, Close, Connect, ExpandEnvironmentStrings, GetKey, LogonUser, RevertToSelf

Properties of Server class

hKey, Keys, Name

RegEdit.Server

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).

RegEdit

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 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz