Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drive mapping question

Status
Not open for further replies.

MasterRacker

New member
Oct 13, 1999
3,343
US
We have an application that runs from a server in another domain that we do not have a trust established with.

It needs a mapped drive to run. The way we handle this is under each user profile, we map a drive to the other server (call it "untrusted") and when prompted for a username, we use a local ID on the untrusted server and click to remember the password.

Every once in a while the cached credentials go away and the fix is to unmap, then remap the drive. I'd like to script this since it's a pain to lead users through this. I know the basic syntax to map a drive with credentials is
Code:
Set WSHNetwork = CreateObject("WScript.Network")
WSHNetwork.MapNetworkDrive "F:", "\\untrusted\appshare", True, "untrusted\localid", "password"

The question is, will mapping this way cache the credentials or would this need to be a login script type function where you map every time you log in?

If this doesn't cache the credentials, is there another way to map a drive that does?

Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
Your method would cache the credentials the same as though it was being mapped manually. You are better off taking the logon script route, so if any users have trouble with the mapping,they can just reboot their machines and it would come back.
 
or a add a shortcut to the desktop / startmenu to kick off the logon script when / if someone needs to. say you havent licked the RAS, VPN stuff...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top