Need help creating either Login script or GPO to map to new win 2008 server shared folder

bigblue72
bigblue72 used Ask the Experts™
on
I am have a existing windows 2003 network and a new windows 2008 network. W e have a shared public folder that in the past I had to go to each PC and map a drive to the shared folder.  I need help creating a script or gpo so all users will have this drive already mapped for them whenever they log on pointing to the new shared folder on a windows 2008 server.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Use this line, change z: to your drive and change the server and share names:

@echo ff
net use z: /d /y
net use z: \\new_2k8_server\sharename

Commented:
Hi,
Here is a previous answer related to your question:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Q_23818987.html

If you need help to setup the login script on windows 2008 here is a good article:
http://www.petri.co.il/setting-up-logon-script-through-gpo-windows-server-2008.htm

Author

Commented:
OK so I tried the net use as recommend and saved it as a .cmd on my desk top and tried to ruin it on my PC first but nothing was mapped??

Net Use P:\ "\\AUSTRALIA/Data" /persistent:yes

What now?   I assume that it would work on my local PC right?
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Author

Commented:
Can you please explain what this does?  "@echo ff
net use z: /d /y


thanks

Commented:
rename your file as a .bat

Net Use P:\ "\\AUSTRALIA/Data" /persistent:yes

your / after australia must be \

Author

Commented:
OK I made the change and saved it to the root of C drive ...double clicked it and it did not addd the mapping to my PC?

Net Use P:\ "\\AUSTRALIA\Data"/persistent:yes

Author

Commented:
But it works when I run it on a cmd line

Commented:
get rid of the \ after p:\ so:

Net Use P: "\\AUSTRALIA\Data" /persistent:yes

if you use your .bat in a logon script you don't have to add  /persistent:yes

Author

Commented:
well thanks what Im trying to creat but not sure how to create a login script?  I want to make it a gpo
Commented:
Do you use active directory?
Use the link as send before

Digico:Hi,
Here is a previous answer related to your question:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Q_23818987.html

If you need help to setup the login script on windows 2008 here is a good article:
http://www.petri.co.il/setting-up-logon-script-through-gpo-windows-server-2008.htm

Author

Commented:
OK I have followed the step outlined in the petri article and replicated the servers and logged on to test the login script but it did not mapp the new drive?  I added this to an OU within our domain?? SHould I just add it the the domain itself?

Net Use P: "\\AUSTRALIA\Data" /persistent:yes

This is what the logon script says.

Commented:
you can try to run the command:
gpupdate /force
from you server

Are you sure you linked the gpo to an OU and that your OU contain the user your are testing with?

Commented:
did you try restarting the client computer?

Author

Commented:
I rebooted the client PC and logged in but no Map drive. Does it matter if it is a .bat vs .cmd?  

Author

Commented:
I linked the gpo to OU that I am a member of not the OU my profile is assigned too ? Does that make a difference?  

Author

Commented:
Do the security rights of the authenicated users have to be write ?? Right now they are set to read and execute?

Commented:
You must link your GPO to the OU.
Your user must be in this OU. (Active Directory users and computers).
You must add your user in GPO Security filtering.
In delegation tabs you must add your user.
By right clicking you GPO in your OU you must link enabled the GPO.

Author

Commented:
Thanks for your assistance!!  Great Links!! Both were very helpful

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial