We help IT Professionals succeed at work.

WScript not returning Domain

scotiaceilidh
on
I am trying to make this code work.  Currently I am returning the Username, but not the Userdomain.  

<%
Set objWSH = Server.CreateObject("WScript.Network")
Response.Write objWSH.Userdomain
Response.Write objWSH.Username
%>

AnyOne?
Comment
Watch Question

Commented:
Running Win9x or ME? --
INFO: UserDomain Method Does Not Work Under Win95 with WSH
http://support.microsoft.com/support/kb/articles/Q188/6/02.ASP

Author

Commented:
Sorry,
I am using Win2K.  I have looked at that and tried it with no avail.

Commented:
Dude, You can't get the domain.  Forget about it, since the Domain will alsways be for the server you site is being hosted!  Redisign the site!
Commented:
I am soo right!

Author

Commented:
You were Right!!

Commented:
Next time don't give points to friends, dudes.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.