Solved

Redirect any/Custom folder to network via Group Policy

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

Do email signature updates give you a headache?

Are you constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
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…

911 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

18 Experts available now in Live!

Get 1:1 Help Now