• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Network and Printer Objects > Displaying Network User Information

Displaying Network User Information

The WScript.Network object's three properties display information about the current user, computer, and domain from which the user logged on, as illustrated in the following sample script:

set sn = CreateObject("WScript.network") 
WScript.echo sn.userName
WScript.echo sn.computerName
WScript.echo sn.userDomain


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint