LoginAdmin.dll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nathan Henderson

    LoginAdmin.dll

    Trying to run a page that requires admin rights. Tried using the
    LogonAdmin.dll but doen't seem to be working.

    Here's my code:

    '--------------------------------------------------------
    Dim objLogon, Username, Password, Domain

    Username = "administra tor"
    Password = "thepwd"
    Domain = "theserver"
    Set objLogon = Server.CreateOb ject("LoginAdmi n.ImpersonateUs er")
    objLogon.Logon Username, Password, Domain

    Dim fso, f
    Set fso = CreateObject("S cripting.FileSy stemObject")
    Set f = fso.CreateFolde r("c:\Blocked\N ewOne")

    objLogon.Logoff
    Set objLogon = Nothing
    '--------------------------------------------------------

    Only the local admin has access to the Blocked folder.
    The dll doesn't reurn any errors but i get get the permission denied error
    from the line that tries to create the folder.

    What am i missing?

    any suggestions would be appreciated

    -nathan-


  • Pravin Patil [MVP]

    #2
    RE: LoginAdmin.dll

    Hi

    For "IUSER_XXXX " account, Give write permission to "Blocked" folder. and then try

    Cheers

    Pravin Pati


    Comment

    • Nathan Henderson

      #3
      Re: LoginAdmin.dll

      Thanx for your reply.
      I forgot to mension i am not using the anonymous user so that s not going
      to work

      I'm sure someone has come accross this situation??



      "Pravin Patil [MVP]" <pravintp@maste k.com> wrote in message
      news:9E2887E2-0F92-4412-B826-79F201113503@mi crosoft.com...[color=blue]
      > Hi,
      >
      > For "IUSER_XXXX " account, Give write permission to "Blocked" folder. and[/color]
      then try.[color=blue]
      >
      > Cheers,
      >
      > Pravin Patil
      >
      >[/color]


      Comment

      Working...