VBScript - NT Authentication Script

I didn't see topic that covered VBScript specifically so hopefully you all can help me here.

This is the situation:  I have Windows 2000 Professional clients on a Windows Server 2003 domain and would like to create a script that will map drives to a server in a Windows NT 4.0 domain.  

The first script I wrote says that "access is denied."  I need to add to the script the ability to enter the NT domain's User Name and Password.

Notes: There is no trust between the domains and the Usernames are different between domains for the same person (bob's username in NT = admin2, bob's username in 2003 = bsmith).

If anyone can help, I would greatly appreciate it.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

acksisAuthor Commented:
Another note - we've considered adding the trust between domains but that would also include adding the 2003 user groups to the NTFS permissions on the old domain.  That sounded like considerably more work and decided against it.
David LeeCommented:
If "... the ability to enter the NT domain's User Name and Password" means you want the user to be prompted for a username and password, then the script below will do that.

    Dim objNetwork, strLetter, strRemoteShare, strUserName, strPassword
    strLetter = "Z:"
    strRemoteShare = "\\Server\Share"
    strUserName = InputBox("Enter your username", "Username")
    strPassword = InputBox("Enter the password for " & strUserName, "Password")
    Set objNetwork = CreateObject("Wscript.Network")
    objNetwork.MapNetworkDrive strLetter, strRemoteShare, , strUserName, strPassword
    Set objNetwork = Nothing

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
acksisAuthor Commented:
that works - thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

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.