Solved

Redirect any/Custom folder to network via Group Policy

Posted on 2014-04-09
5
1,407 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 24

Expert Comment

by:lionelmm
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 24

Expert Comment

by:lionelmm
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 24

Accepted Solution

by:
lionelmm 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

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
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…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now