Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Redirect any/Custom folder to network via Group Policy

Posted on 2014-04-09
5
Medium Priority
?
1,758 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
  • 3
  • 2
5 Comments
 
LVL 26

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 26

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 26

Accepted Solution

by:
Lionel MM earned 2000 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

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
The article covers five tools all IT professionals should know about, as they up productivity by a great deal!
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

926 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