Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Getting computername, userdomain and username from NT
- From: javascript@xxxxxxxxxx (Simon Young)
- Subject: [Javascript] Getting computername, userdomain and username from NT
- Date: Mon, 25 Mar 2002 14:54:03
Hi
I need to capture the following from an NT session UserDomain, ComputerName
and UserName. MS have provided the following...
<script language="JScript">
var WshNetwork = WScript.CreateObject("WScript.Network");
WScript.Echo("Domain = " + WshNetwork.UserDomain);
WScript.Echo("Computer Name = " + WshNetwork.ComputerName);
WScript.Echo("User Name = " + WshNetwork.UserName);
}
</script>
but I can't get it to work. Any ideas gratefully received!
Simon
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
- Prev by Date: [Javascript] cookies
- Next by Date: [Javascript] 包月长途电话(广告邮件不看请删除打搅了)
- Previous by thread: [Javascript] cookies
- Next by thread: [Javascript] 包月长途电话(广告邮件不看请删除打搅了)
- Index(es):