• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1826
  • Last Modified:

Redirect any/Custom folder to network via Group Policy

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
sibit
Asked:
sibit
  • 3
  • 2
1 Solution
 
Lionel MMSmall Business IT ConsultantCommented:
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
 
sibitAuthor Commented:
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
 
Lionel MMSmall Business IT ConsultantCommented:
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
 
sibitAuthor Commented:
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
 
Lionel MMSmall Business IT ConsultantCommented:
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

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

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