net use without prompting for user name or password

I have a client who has an Iomega Store Center Pro 150D. They have elected not to join it to their Microsoft Domain because of problems Iomega has had with this device and this option. The IP address of this device is 192.168.0.14

They have a share on this device named "scanned"

The user name and password to this share is:

scanuser
scanuser

If I type in the following:

net use i: \\192.168.0.14\scanned

and press enter,

I get the normal Microsoft Message box to enter user name and password, as well as have the option to Click the Check box to "remember" the information.

I need to however be able to place this information in a script, so that everyone on the network has access to this share. This client does not want any security for the device. All users can have full permissions.

Can someone help me with the vbs script that will accomplish this. I have seen other snippets of script on this site and others that give me some ideas, but nothing has worked.
Rick RudolphAsked:
Who is Participating?
 
Steve KnightIT ConsultancyCommented:
Well if you want to use a net use command still you can just add the username and password:

net use i:\\192.168.0.14\scanned /user:scanuser scanuser

If you want VBS here is an example with a username / password:

http://www.computerperformance.co.uk/ezine/ezine31.htm

i.e. something like:

Option Explicit
Dim objNetwork, objPopUp

Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "I:", "\\192.168.0.14\scanned", "False", "scanuser","scanuser"

WScript.Quit


0
 
Steve KnightIT ConsultancyCommented:
Thanks for the points and grade.  

Steve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.