I need to run a net use command from a vb script. The script will ask for a users login name as input. Then the user name will be put in to a net use command that will prompt for the users password. This is what I have written.
Option Explicit
Dim name, username
Wscript.StdOut.WriteLine "Enter your name: "
username = Wscript.StdIn.ReadLine
Wscript.StdOut.Run "net use \\55chevy /user:domain\"& username &""
The problem is I do not know how to execute the net use command. Can anyone help?
Regards,
Option Explicit
Dim name, username
Wscript.StdOut.WriteLine "Enter your name: "
username = Wscript.StdIn.ReadLine
Wscript.StdOut.Run "net use \\55chevy /user:domain\"& username &""
The problem is I do not know how to execute the net use command. Can anyone help?
Regards,