Go Back   nV News Forums > Software Forums > Networking And Security

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-09-10, 10:10 AM   #1
DiscipleDOC
 
DiscipleDOC's Avatar
 
Join Date: Dec 2002
Location: Alabama, Planet Earth
Posts: 5,993
Default goup policy and shared folder

Hey guys, I'm stomped with this one.

I'm looking to have a global folder shared with every user that logs onto the domain. I want it to have the same drive letter across the domain as well.

How do I do this via group policy?
DiscipleDOC is offline   Reply With Quote
Old 11-09-10, 10:24 AM   #2
Q
 
Join Date: Sep 2004
Posts: 7,808
Default Re: goup policy and shared folder

Well, it depends DOC. There are a couple ways.

Things are easier if you're running Vista or W7. With XP, you should be running SP3 with the Group Policy Preference Client Side Extensions update installed (WSUS or manually) on each machine. This will allow you to use Group Policy preferences which makes this much easier. Just make sure that you create the policy from a Vista/W7/W2k8/W2k8R2 machine so that you can see the new Preferences section in the GPO.

Then all you have to do is link an OU to the top level of whatever OU you use to store users and implement the following:

User Configuration > Preferences > Windows Settings > Drive Maps

I always use the Replace action because it is more consistant. Here you can set the Drive letter as a static entry, or - which is REALLY COOL - you can have it use the first available letter starting at whatever you want. The "first available feature" is not what you need this time, but its a cool tool to have. You'll use the static entry and it should work like a charm.




The second option is a bit more static, but is effective across machines that don't have the client side update I mentioned earlier. All you have to do is....

User Configuration > Policies > Windows Settings > Scripts > Logon

And then just make a simple batch script like this:

net use h: /delete /yes
net use h: \\Server\share /yes

If you store it in \\localdomain.domain.whatever\sysvol\localdomain.d omain.whatever\Policies\(Sid of policy you just created\User\Scripts... then you can just specify it by the file name in the GPO AND you know that everyone it applies to will have access to the script. OR you could just store it in the sysvol\scripts folder if you prefer, but I like that for scripts that I use for individual account logons.

If you need specifics for your domain, let me know.
Q is offline   Reply With Quote
Old 11-09-10, 10:28 AM   #3
Drolfrawd
Registered User
 
Drolfrawd's Avatar
 
Join Date: Jan 2008
Posts: 2,787
Send a message via MSN to Drolfrawd
Default Re: goup policy and shared folder

Thank , I have saved that for future use. I usually just share and map a drive witha script.

like this one



net time \\dcwilkinson /yes

net use g: /d /y
net use g: \\dcwilkinson\data
net use h: /d /y
net use h: \\dcwilkinson\ongoingwork

START \\dcwilkinson\netlogon\AddPrinter.vbs
Drolfrawd is offline   Reply With Quote
Old 11-09-10, 10:58 AM   #4
DiscipleDOC
 
DiscipleDOC's Avatar
 
Join Date: Dec 2002
Location: Alabama, Planet Earth
Posts: 5,993
Default Re: goup policy and shared folder

Quote:
Originally Posted by Q View Post
Well, it depends DOC. There are a couple ways.

Things are easier if you're running Vista or W7. With XP, you should be running SP3 with the Group Policy Preference Client Side Extensions update installed (WSUS or manually) on each machine. This will allow you to use Group Policy preferences which makes this much easier. Just make sure that you create the policy from a Vista/W7/W2k8/W2k8R2 machine so that you can see the new Preferences section in the GPO.

Then all you have to do is link an OU to the top level of whatever OU you use to store users and implement the following:

User Configuration > Preferences > Windows Settings > Drive Maps

I always use the Replace action because it is more consistant. Here you can set the Drive letter as a static entry, or - which is REALLY COOL - you can have it use the first available letter starting at whatever you want. The "first available feature" is not what you need this time, but its a cool tool to have. You'll use the static entry and it should work like a charm.




The second option is a bit more static, but is effective across machines that don't have the client side update I mentioned earlier. All you have to do is....

User Configuration > Policies > Windows Settings > Scripts > Logon

And then just make a simple batch script like this:

net use h: /delete /yes
net use h: \\Server\share /yes

If you store it in \\localdomain.domain.whatever\sysvol\localdomain.d omain.whatever\Policies\(Sid of policy you just created\User\Scripts... then you can just specify it by the file name in the GPO AND you know that everyone it applies to will have access to the script. OR you could just store it in the sysvol\scripts folder if you prefer, but I like that for scripts that I use for individual account logons.

If you need specifics for your domain, let me know.
Thanks. These are the points that I was looking for. I knew that there was a way in the GP to do this, but I could not find them.

You're a life saver bro!
DiscipleDOC is offline   Reply With Quote
Old 11-09-10, 11:03 AM   #5
Redeemed
Registered User
 
Join Date: May 2005
Posts: 17,982
Default Re: goup policy and shared folder

I was going to suggest an NAS drive... not sure how you'd tie that into the policies though. I suppose if you already have an internal drive that's shared, or a partition that's shared, it'd work the same way?

I really should read up on this stuff a lot more. One of the few topics regarding Windows that I'm not too familiar with.
Redeemed is offline   Reply With Quote
Old 11-09-10, 11:55 AM   #6
Q
 
Join Date: Sep 2004
Posts: 7,808
Default Re: goup policy and shared folder

Quote:
Originally Posted by DiscipleDOC View Post
Thanks. These are the points that I was looking for. I knew that there was a way in the GP to do this, but I could not find them.

You're a life saver bro!
It was my esteemed pleasure, Mr. Disciple.

Remember to pick a drive letter that you're not already using in a custom batch scripts, if you use those. I've had that come back to bite my behind a few times.
Q is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:37 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.