Help with Objet required



Hi to all.

I have this script in example1.vbs:

Dim objshell, objnetwotk
Set objshell = WScript.CreateObject("Wscript.Shell")
Set objnetwork = WScript.CreateObject("Wscript.Network")


Dim vdom, vuser
Set vdom = objnetwork.UserDomain
Set vuser = objnetwork.UserName
wscript.echo "Welcome to the domain: " & vdom & ", " & vuser & "."

when i execute this command with csript example1.vbs y have this response.
Object is requied [string: "Mydomainname"]

Thanks.

--
Agures


.