==[[WScript ドメイン、ユーザー情報を取得する]]==
[[WScript]] |
===[[VBScript]]=== Set nt = [[WScript]].CreateObject("[[WScript]].Network")
msg = "Domain = " & nt.UserDomain & vbcrlf _
& "Computer Name = " & nt.ComputerName & vbcrlf _
& "User Name = " & nt.UserName
[[WScript]].Echo msg
//ドメイン情報を取得する
var nt = [[WScript]].CreateObject("[[WScript]].Network");
var msg = "Domain = " + nt.UserDomain
+ "\nComputer Name = " + nt.ComputerName
+ "\nUser Name = " + nt.UserName;
[[WScript]].Echo(msg);