MasterRacker
New member
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
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]
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]