<

Setting file associations with group policy preferences

Published on
30,419 Points
21,619 Views
8 Endorsements
Last Modified:
Approved
Community Pick
At some point in your work you may run into a need to globally assign a specific file type to open using a specific program. I recently was tasked with completing this objective. In my case it was setting the TSV file association to open with Excel. Below are the steps to follow if you need to do a similar file extension modification using GPP.

I had originally been hesitant to use GPP's because I thought they required a 2008 domain controller. This is not the case. These GPP's can be easily used assuming you meet the prerequesites below.

1. You will need to create the GPP on a Vista, 7, or Server 2008 machine with the Group policy management console available.
2. Your clients will need to have the group policy preferences client side entensions installed on them. These come installed by default on Vista and 7. For XP you will need to download them here. This update can also be pushed to your clients via WSUS.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e60b5c8f-d7dc-4b27-a261-247ce3f6c4f8&DisplayLang=en
3. Microsoft reccomends installing XMLlite on the machine as well. http://www.microsoft.com/downloads/en/results.aspx?pocId=&freetext=XMLLite&DisplayLang=en 
I did not have to do install this for the GPP to work on my XP machine.

nce you have the 3 pre-requesites above covered simply open up the GPMC. Right click the group policy object container and select new or open an existing group policy.

In the new policy you created navigate to computer configuration | preferences | control panel settings | folder options
 1
Right click on folder options and select new, file type.

2
The new file type properties window will appear.

3
The first option you have to configure is the action you would like to perform. The dropdown has 4 choices Create, Replace, Update, and Delete. For an explanation of each hit F1 and you will be presented with descriptions. In this case I chose to update the extension.

4
Next enter your file extension without the dot in front (tsv not .tsv) and select the associated class from the dropdown. In this case I am using Excel to open my TSV files.

5
One important item to note is that the program whose associated class you choose must be installed on the machine where you are creating the GPP. If it is not installed you will receive a "Could not save settings file error 80070003"

  6Once you have the settings entered hit apply to save the GPP. At this point you can close out to the main GPMC window and apply your newly created GPP to your target OU.

Since this is a computer policy you will need to perform a reboot for it to apply. Upon reboot your new file associations should be active.
8
Comment
Author:Joseph Daly
4 Comments
 
LVL 58

Expert Comment

by:tigermatt
Thanks for putting this together, xxdcmast! I voted "yes" above.
0
 
LVL 37

Expert Comment

by:Carl Webster
Dude, you are my hero.  This also works for Terminal Servers, Remote Desktop Services servers and Citrix MetaFrame/Presentation Server/XenApp servers.

<288 point bold red flashing font>

THANK YOU

</288>
0
 

Expert Comment

by:HelpDeskGeiger
This was EPIC! I've been trying to get .tif files associated with MODI on a Server 2008 R2 box and I just couldn't find any good information till I checked here. Your guide was exactly what I needed. THANKS!
0
 

Expert Comment

by:Josh Libby
Did you have Office installed on the DC where you edited your policy in order to have the associated class available in your drop down?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Join & Write a Comment

Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month