3 Responses to How to Get Currently Logged On User Name Using VBScript

  1. hi!,I really like your writing so much! percentage we keep in touch more about your post on AOL? I require an expert in this house to solve my problem. May be that is you! Taking a look ahead to peer you.

  2. Sev says:

    Hi,

    That works perfectly, but can you add the commands so it shows in a messagebox and Always stays on top of the desktop?

  3. testme says:

    sev, for a messagebox it’ll be something like this:

    Dim objNetwork
    Dim userName

    Set objNetwork = CreateObject(“WScript.Network”)
    userName = objNetwork.UserName

    msgbox “Hi there “; WScript.Echo userName ; “, welcome to our Network!”

Leave a Reply

Your email address will not be published. Required fields are marked *