[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


net use without prompting for user name or password

Posted on 2007-10-01
Medium Priority
Last Modified: 2012-06-27
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

They have a share on this device named "scanned"

The user name and password to this share is:


If I type in the following:

net use i: \\\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.
Question by:rrudolph
  • 2
LVL 43

Accepted Solution

Steve Knight earned 2000 total points
ID: 19995304
Well if you want to use a net use command still you can just add the username and password:

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

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


i.e. something like:

Option Explicit
Dim objNetwork, objPopUp

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


LVL 43

Expert Comment

by:Steve Knight
ID: 19996949
Thanks for the points and grade.  


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Before I go to far, let's explain HA (High Availability) and why you should consider it.  High availability is the mechanism used to provide redundancy to any service at the same site and appears as a single service to the users of that service.  As…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month18 days, 21 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question