Skip to content

Instantly share code, notes, and snippets.

@ezhov-da
Last active March 10, 2019 12:18
Show Gist options
  • Save ezhov-da/5a3e251d8b1bd57552c12f1ef92ce5e5 to your computer and use it in GitHub Desktop.
Save ezhov-da/5a3e251d8b1bd57552c12f1ef92ce5e5 to your computer and use it in GitHub Desktop.
vbs username.vbs
'http://www.robvanderwoude.com/vbstech_network_names_user.php
Set wshShell = CreateObject( "WScript.Shell" )
strUserName = wshShell.ExpandEnvironmentStrings( "%USERNAME%" )
WScript.Echo "User Name: " & strUserName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment