map a drive to a Server not on our domian

Posted on 2006-04-09
Last Modified: 2010-03-18
I have a server that is in a Workgroup setting(not on a domain).  It has a unique IP address and it is connected on our network; but, I need to put this server's shared files available through our logon script.  I know 'net use' will work; but, every time these user's will logon, it will prompt them for the server's username and password.  

Is there a way to embed the username and password for a Server that is not in our domain and have a drive mapped to this server?  

Or is the best way to go about this is to map a drive manually, after the user has logged on, and choose re-connect at logon?  There is a prompt to enter the username and password at this network drive setting.

The problem with the latter choice, is that we will have to manually map a drive for every user on every PC that has that software installed on it.  That is why I was wondering if there is a way to edit a logon script and to map a drive to a server and have the logon script enter the username and password for this server, in a 'Workgroup'.
Question by:Pkafkas
    LVL 5

    Expert Comment

    LVL 48

    Accepted Solution

    Hi Pkafkas,

    have a look at this - if you use the password switch you can include credentials in your script


    Author Comment

    I wonder if ComputerName is '\ComputerName\ShareName '  can be an IP address?  I will try it out.

    Author Comment

    Actually now that I have read jay_Jay70's response that answered my above question perfectly.  I will try it out.
    LVL 48

    Expert Comment

    let me know how it goes :)

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
    Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    745 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

    12 Experts available now in Live!

    Get 1:1 Help Now