Trying to map network drive as administrator

September 21, 2011 at 10:01:10
Specs: Windows XP
Here's my situation:

I'm logged on as a regular user, but have a separate administrator account.
What I'm trying to do is make a script that will launch a network drive (that i cannot access with my current account) with my administrator credentials. I can't map it as a regular network drive, because I already have other drives mapped on that server.

I want to be able to launch a batch file on my desktop, have it authenticate my administrator account (I will type the password, that's fine), and then have it launch the target drive in either an explorer or internet explorer window.

See More: Trying to map network drive as administrator

Report •

September 21, 2011 at 11:44:18
You can use the net use command to accomplish this:

@echo off
net use s: \\server\share /user:domain\username
explorer s:

Report •
Related Solutions

Ask Question