LoginAdmin.dll

  • Thread starter Nathan Henderson
  • Start date
N

Nathan Henderson

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 = "administrator"
Password = "thepwd"
Domain = "theserver"
Set objLogon = Server.CreateObject("LoginAdmin.ImpersonateUser")
objLogon.Logon Username, Password, Domain

Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.CreateFolder("c:\Blocked\NewOne")

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-
 
P

Pravin Patil [MVP]

Hi

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

Cheers

Pravin Pati
 
N

Nathan Henderson

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??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top