Solved

Permission denied: 'GetObject'

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 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