nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   Networking And Security (http://www.nvnews.net/vbulletin/forumdisplay.php?f=58)
-   -   goup policy and shared folder (http://www.nvnews.net/vbulletin/showthread.php?t=156933)

DiscipleDOC 11-09-10 10:10 AM

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?

Q 11-09-10 10:24 AM

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.

Drolfrawd 11-09-10 10:28 AM

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

DiscipleDOC 11-09-10 10:58 AM

Re: goup policy and shared folder
 
Quote:

Originally Posted by Q (Post 2344719)
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! :thumbsup:

Redeemed 11-09-10 11:03 AM

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. :o

Q 11-09-10 11:55 AM

Re: goup policy and shared folder
 
Quote:

Originally Posted by DiscipleDOC (Post 2344748)
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! :thumbsup:

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.


All times are GMT -5. The time now is 01:53 AM.

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