473,554 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ


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

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

Jul 19 '05 #1
2 3635

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


Pravin Pati
Jul 19 '05 #2
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]" <pr******@maste k.com> wrote in message
news:9E******** *************** ***********@mic rosoft.com...

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

Pravin Patil

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Geoff Wickens | last post by:
I am amazed at how much help I have had in creating my first asp based website from this forum. There are obviously a significant number of real experts who are happy to take the time to help us novices. My site which now does what it aims to would not be working without this assistance and I am extremely grateful. Long may it continue!!!!! ...
by: t.schwenk | last post by:
hi ng! for our intranet i try to connect to the WinNT:// namespace from an asp (or from global.asa) to retrieve the usergroups which the current user is in (in order to regulate intranet-access). so i use: sUser = Request.ServerVariables("LOGON_USER") sUser = Right(sUser, Len(sUser) - InStr(sUser, "\"))
by: t.schwenk | last post by:
hi ng! in our intranet i try to get the users full name from ADSI. so i connect to a ad-provider with an enforced admin-logon (see ms knowledge-base 'LoginAdmin.dll') like that: Set objLogon = Server.CreateObject _ ("LoginAdmin.ImpersonateUser") objLogon.Logon "usernameAdmin", "pwd", "ourDomain" Set objLDAP = GetObject("WinNT:")
by: James | last post by:
how come i can't print to a network printer from inside my activex dll? i load this dll in an asp page. the dll just loads a page into a webbrowser control and then trys to print it. i can call my dll from a normal vb app and it works fine. my guess is that when IIS loads the dll it is running as SYSTEM. thats why i tried to use the...
by: Daniel C. Di Vita | last post by:
This worked a while back, but for some reason it is not working any more. I am using II5 with ASP 3.0. I have created the DLL form microsoft's site: http://support.microsoft.com/default.aspx?scid=kb;EN-US;248187 This is the code I am working with: <% Set objLogon = Server.CreateObject("LoginAdmin.ImpersonateUser")
by: Daniel Di Vita | last post by:
I am trying to run a command line from an ASP page. I am using windows 2003 with IIS6. I am able to get this to run on my local machine (Windows XP IIS5). Here is my code: jobNbr = Request.QueryString("jobNbr") 'Log in as an admin. I created a component to impersonate an administrator. ‘This works fine Set objLogon =...
by: Daniel Di Vita | last post by:
I have an application that needs to pull files from an internal server. This is the setup. The web server is external facing, meaning exposed to the internet. I then have a file server that sits inside our domain. I created a COM object that can impersonate a user to retrieve files from that server. However, I cannot get the application to...
by: Nachi | last post by:
I have installed SQL Server 2000 with VS 2005 - did not install SqlExpress\Sql 2005. I have a remote Sql Server Instance locally. The normal application connectes to this Sql Server. When I run Asp.Net Configuration from VS 2005 it gives this error. I have removed 'LocalSqlServer' in machine.Config and added in web.config as following.
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.