Solved

Permission denied: 'GetObject'

Posted on 2003-11-20
2
623 Views
Last Modified: 2012-05-04
Hi Experts,

I am using given below code to get clients Full name but i am getting error permission denied.
How can i solve this problem.

thanks


Dim sUserId, objUser

sUserId = Trim(Request.ServerVariables("LOGON_USER"))

Set objUser = GetObject("WinNT://" & Replace(sUserId, "\", "/"))

Response.Write objUser.FullName

Set objUser = nothing
0
Comment
Question by:mohsinnazir
  • 2
2 Comments
 
LVL 21

Expert Comment

by:ap_sajith
ID: 9788653
http://www-tcsn.experts-exchange.com/Web/Web_Languages/ASP/Q_20765826.html

Dim sUserId, objUser

sUserId = Trim(Request.ServerVariables("LOGON_USER"))
strUserArr=split(sUserId ,"\")
Set objUser = GetObject("WinNT://" & strUserArr(0)  & "/" & strUserArr(1))

Response.Write objUser.FullName

Set objUser = nothing



Cheers!!
0
 
LVL 21

Accepted Solution

by:
ap_sajith earned 250 total points
ID: 10243531
Hi,
Any Updates?. Do you need any further assistance with this?. Please close this question if no further assistance is needed.
If you need help closing this question, please refer to http://oldlook.experts-exchange.com/help/closing.jsp on how to close a question.

Cheers!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now