In VB Script the following code shows you which user is logged in:
Set WSHShell = CreateObject("WScript.Shell")
UserLoggedIn = WshShell.ExpandEnvironmentStrings("%username%")
wscript.echo UserLoggedIn
Very handy for logon scripts
Thursday, January 27, 2011
Subscribe to:
Post Comments (Atom)
realy thanks keep posting . www.whatisnew.in
ReplyDeleteAwesomee Dear
ReplyDelete