net use without prompting for user name or password

Posted on 2007-10-01
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
    LVL 43

    Accepted Solution

    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
    Thanks for the points and grade.  


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Hi there, This article summarizes what you need if you are going to set up your home or small business Network Attached Storage (NAS) to be accessible from the internet. Of course there are configuration differences based on your NAS or router ma…
    Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now