Link to home
Start Free TrialLog in
Avatar of deshi777
deshi777

asked on

Mapping a drive on Local Machine

Is there a way to map a drive on a local machine without using group policies. Ex. I have a computer that 9 users login to and I need to map a drive (R) for all the users so instead of having to login as all the users and map the drive I want to use a share username such as testuser with a password of test and for it to automaticly save the password upon login on the local machine.
ASKER CERTIFIED SOLUTION
Avatar of Ranidae
Ranidae
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Good call dlwyatt82 !!!
Just a thought though...

if you do it that way... ALL users get the drive, not just the specific 9.... if that's still ok... then all you need in the script is:

Dim WSHNetwork
Set WSHNetwork = WScript.CreateObject("WScript.Network")
WSHNetwork.MapNetworkDrive "R:", "SERVER\SHARE", , "USERNAME", "PASSWORD"
Avatar of deshi777
deshi777

ASKER

Ok thanks I'll try that