Solved

Permission denied: 'GetObject'

Posted on 2003-11-20
2
629 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

623 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