Solved

Redirect any/Custom folder to network via Group Policy

Posted on 2014-04-09
5
1,552 Views
1 Endorsement
Last Modified: 2014-06-05
Hi,

I have a folder, which is created by setting one of Java applet. Folder is placed at:
C:\Users\"username"\.jconfig

Users are using different Workstations for their work. I want to achieve, that once they setup application and ".jconfig" is created, that those settings are avaliable on each workstation they log in.

So pretty simmilar as foder redirection for desktop, My documents,...

All workstations are runnig Win7 PRO or higher and AD is 2008 R2 Functional Level.
1
Comment
Question by:sibit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 25

Expert Comment

by:Lionel MM
ID: 39991654
You can create a new string in the registry--do you know how to do this? If you do go to HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
and add a new string with a name that makes sense to you--then go to GPO and add that to the folder redirection section (this is a good site to help you http://4sysops.com/archives/folder-redirection-part-4-group-policy-configuration/)
0
 
LVL 1

Author Comment

by:sibit
ID: 39998740
I understand part of redirecting classic folder such as "My documents", "Pictures",....

What to do if you have folder C:\Users\%username%\.jconfig.

I want to redirect that folder also!
0
 
LVL 25

Expert Comment

by:Lionel MM
ID: 39998850
C:\Users\%username%\.jconfig
That is the new string you will create, then once you have created it in the registry you will then use group policy to redirect that string to your new location.
Is the  C:\Users\%username%\.jconfig a custom set of config files for each user that you want to travel with them from PC to PC? And do more than one person use a PC? Because if you want  C:\Users\%username%\.jconfig to travel with them from one PC to another PC then folder redirection will not work UNLESS your jave app is looking for the config files in the new location. You could ahve the custom .jconfig on a server and copied each time a user logs on.
0
 
LVL 1

Author Comment

by:sibit
ID: 40016827
Sorry for my late response.

Yes .jconfig is a custom set of files for each user.
So I would like that that settings are same for user on any PC user logs on. Jave app is looking for setting in C:\Users\%username%\.jconfig

What is your advice ?
0
 
LVL 25

Accepted Solution

by:
Lionel MM earned 500 total points
ID: 40017370
I tried to test this but I cannot create a folder with a "." in it--not in the beginning of the name anyway so I am going to assume the folder name is jconfig and not .jconfig. Are you involved with the install and setup of each custom file or does each user make this file and does it change as the continue to use the app? In other words does the file have to updated each time the user uses the java app? I am assuming the answer is Yes to both these questions, so in that case do the following
1) Create a logon file and 2) Create a logoff file. Put both these batch file in a central location, preferably on the logon server at \\servername\netlogon (This can be found at C:\Windows\SYSVOL\domain\scripts. Then in group policy go to the User Configuration\Policies\Windows Settings and the Scripts (logon/logoff) section. There add the location to the scripts you created example in the logon section add \\servername\netlogon\Java-On.bat and in the logoff section \\servername\netlogon\Java-Off.bat. This will make these batch file run during logon and logoff.
Now Create Java-On.bat and Java-Off.Bat (see two attached files as examples). These files will be run whenever a user logs on and when they logoff. These batch files are very basic and I can do much more with them but the main job of copying the custom folder should work. Make sure you rename the TXT files to BAT extensions
ee--iava-app-off.txt
ee--iava-app-on.txt
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question