Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 568
  • Last Modified:

Creating a folder in a network location using GPO - Group Policy

I am trying to create a folder on a mapped drive that all the users have. For example the drive is H:\ and the folder existing is "folder1". I want to create a folder in "folder1" for everyone so that it will read H:\folder1\folder2. Anyone know if this is possible by using group policy?
0
Wayside_Tech
Asked:
Wayside_Tech
  • 4
  • 4
1 Solution
 
George SimosIT Pro Consultant - IT Systems AdministratorCommented:
So you have shared a folder on a server which is named as folder1 right?
Let's say your server's name is "FileServer1" and the physical path of the shared folder named "Folder1" is D:\Folder1.
Have you shared folder1 and given the right permissions (sharing and ntfs ones) to the users you want?
After that have you created another folder named "Folder2" under "Folder1"?
If you have done the above steps then from a windows explorer you can type:
\\FileServer1\Folder1\Folder2
and you will have access to the folder.
If you want now to map the path \\FileServer1\Folder1\ to H:\ you can do this either via a logon script by using the command
"net use H:\ \\FileServer1\Folder1\"

Open in new window

and putting the script file on your netlogon folder of your domain (eg \\mydomain.local\netlogon\mapdrives.cmd) and put this path in the GPO.
Alternatively if you have Windows 7 you can use Group Policy Preferences to map the drive letter to your share.
Group Policy preferences can work in Windows XP too but you have to download the following update (http://www.microsoft.com/en-us/download/details.aspx?id=3628) but you have to manage the GPOs via a Windows Vista and later machine with the Group Policy Management Console installed via the Remote Server Administration Tools package.

What I don't understand it that you say "I want to create a folder in "folder1"" via GPO, you actually don't have to do that via GPO, you do it as described above!
0
 
dmwynneCommented:
You can try using group policy preferences, configure a folder item:

http://technet.microsoft.com/en-us/library/cc730913.aspx

I can't test this at the moment to tell you it will work definitively.
0
 
Wayside_TechAuthor Commented:
Gsimos,

I thank you for your quick response. The mapped drives have already been setup. Every user that log's in has this drive being mapped. It's a folder for each user mapped according to their usernames. Each user has their own folder that is named their username.
The issue is rather than me going to everyone's computer and create this folder within the mapped drive; I wanted to create this folder using Group Policy.
The reason I want to create the folder is because I want to redirect a file to the folder . I was looking for a way to automate the creation of the folder in GPO then use another group policy to redirect a file location. But, my issue is I can't get the folder to be created in the mapped drive when I test it. Which means I can't get the file to relocate to the network location (mapped drive).
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
George SimosIT Pro Consultant - IT Systems AdministratorCommented:
Let me get this straight, your final target is to redirect users folders such as "Documents", "Videos", "Desktop" etc?
0
 
Wayside_TechAuthor Commented:
Yes, I am trying to redirect the user's "Templates" folder.
0
 
George SimosIT Pro Consultant - IT Systems AdministratorCommented:
This is a custom folder you have created I presume right?
0
 
Wayside_TechAuthor Commented:
No, usually the folder is found at C:\Users\"username"\AppData\Roaming\Microsoft\Templates

I am just trying to have the templates go to the mapped drive instead of locally on the hard drive.
0
 
George SimosIT Pro Consultant - IT Systems AdministratorCommented:
Well you don't have to burden yourself a lot with that, especially you don't have to map it on any drive letter, the solution for you is the enabling of roaming user profiles, by doing that the %AppData%\Roaming folders of the users are moved to the network location you designate and a local cached copy is kept and synchronised during logon/logoff (you may set up policies through GPOs to sync periodically also while logged in).

You can achieve that by creating a GPO and link it on the OU with the Users you want to have such profiles.
Then edit the GPO and go to the Section: User Configuration > Policies > Folder Redirection
Right Click on "AppData(Roaming) and click properties
At the Setting dropdown select "Basic - Redirect everyones folder to the same location
At "Target folder location" select "Create a folder for each user under the root path"
In the "Root Path" box type the UNC path for the server share you have created, let's say \\FileServer1\Folder1\
Now click on "Settings" tab and check that the boxes "Grant the user exclusive rights to AppData(Roaming)." and "Move the contents of AppData(Roaming) to the new location" are checked
The final step is to decide the Policy removal which by default does not redirects back the folder when the policy is removed or is out of scope, this is something you will decide better
Finally press Apply and OK and close the GP Editor.
Now what we have achieved? Every user's Appdata(Roaming) profile folder will be redirected to the shared folder above, users don't need to have direct access there because they have a cached copy on their PC(s) but they can go and work on any pc in the premises and have their roaming profile following them!
You must keep in mind that this needs a double logon/logoff to work.

I hope this helps you.
0
 
Wayside_TechAuthor Commented:
Very quick and consistent in answering us back! Thanks for the great suggestions and solutions.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now