获取AD用户名

var  wshNetwork = new  ActiveXObject("WScript.Network");
alert("域名 = "+ wshNetwork.UserDomain);

alert("计算机名 = "+ wshNetwork.ComputerName);

alert("登录用户名 = "+ wshNetwork.UserName);
原文地址:https://www.cnblogs.com/neo98/p/5756638.html