Thanks Ramana and Shiva for your help. Unfortunately, neither solutions are working yet. When I use the following code
Dim X
set X = createobject("WSCRIPT.Network")
dim user
user=x.UserName
I get an error that says "ActiveX component can't create object: 'WScript.Network'.
When I use var x = new ActiveXObject("Wscript.Network"); instead of set X = createobject("WSCRIPT.Network") I get an invalid character error. I'm guessing this is because this isn't VBscript.
Any suggestions? I appreciate your help.