Solved

Permission denied: 'GetObject'

Posted on 2003-11-20
2
626 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Select record with the most recent date 14 71
Time Conversions...both ways 2 23
Load data upon clicking a button 8 47
SP result not being displayed 5 37
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

740 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