Link to home
Start Free TrialLog in
Avatar of snyderkv
snyderkv

asked on

Mapping Drives

I need to map three drives for users in a specific department

We have a VBS script that maps these drives if dropped inside the STARTUP of the All Users folder of every machine in that department.

My question is if their is an easy way to get the VBS in the startup folder of the All Users profile on every machine so that when anybody logs on it will map these three drives.

I would map the drive in ADUC but for some reason it only supports one drive.

Can someone help me out?
Avatar of ryansoto
ryansoto
Flag of United States of America image

No ADUC supports any amount really.
Create a batch file in the batch file have something like below.
Once you have that batch file then stick it in the \\server\SYSVOL\domain\scripts
Now in ADUC you go to the profile tab then type the name of the script (no need to type the location)


@Echo Off
 
REM **** Map Network Drives
 
net use x: /delete
net use s: /delete
net use q: /delete
net use s: \\server\shared
net use q: \\server\acctg
net use x: \\server\hr

Open in new window

You could use Group policy in 2003, start - run > gpedit.msc
and change the group policy for the domain to reroute the startupmap  to a map somewhere on your server where you can put the vbs script in.

If you need exact details ill have to check tmrw...(this is just out of my head)

Or to use your existing VBS script:

1. Create a batch file in the NETLOGON directory of your DC (mylogonscript.bat).
2. From the logon script call your VBS script using the WSCRIPT command.
3. In the logon script section of the user in AD enter mylogonscript.bat

Now the batch file will load for the user which will cann the VBS script.

Hope this helps, let me know if you need more info,
Oli
Avatar of snyderkv
snyderkv

ASKER

You may be talking about folder redirection?

Here is my problem. I cannot use GPO or drop anything in the SySVOL

I have to do this entirely by a script.

Sorry I didnt mention that.

Any tricks you guys know of?
i was indeed talking about folder redirection, not sure why thats not good for your script?
Avatar of RobSampson
Why can't you use Group Policy?  That's what Active Directory is for.....

You would just place your VBS file into
User Configuration/Windows Settings/Scripts/Logon

Regards,

Rob.
Because I can't provide that level of support for the smaller departments. It's prohibited

I will check out the link
`Ryan,

Your link was for users on the local machine and not domain users. If I put it on a domain users profile tab it iwll look in the sysvol

Any other ideas?
Put a link to the script in c:\documents and settings\all users\start menu\programs\start up folder, and use a script like the one mentioned by ryansoto
Guess I can't read!
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia 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
Got it

Thanks again