Modifying the Office 2010 ADMX Templates to allow more trusted locations

This guide will show how to edit your office2010.admn and office2010.adml files to add support for more trusted locations than the default 20 that the admx file currently allows. The below example will show how to add the 21st location. Just repeat the process for more locations. Bolded items need to be changed for each location. You will need to edit the office2010.admx and the office2010.adml file.

in the office2010.admx file search for location20
then insert the below on line 4517
<policy name=”L_TrustedLoc21” displayName=”$(string.L_TrustedLoc21)” explainText=”$(string.L_OfficeTrustedLocationsExplain)” presentation=”$(presentation.L_TrustedLoc21)” key=”software\policies\microsoft\office\14.0\common\security\trusted locations\all applications\location21“>
<parentCategory ref=”L_trustcenter241″ />
<supportedOn ref=”windows:SUPPORTED_WindowsVista” />
<elements>
<text id=”L_pathcolon318” valueName=”path” expandable=”true” />
<text id=”L_datecolon319” valueName=”date” />
<text id=”L_descriptioncolon320” valueName=”description” />
<boolean id=”L_allowsubfolders321” valueName=”allowsubfolders”>
<trueValue>
<decimal value=”1″ />
</trueValue>
<falseValue>
<decimal value=”0″ />
</falseValue>
</boolean>
</elements>
</policy>

in the office2010.adml
search for <string id=”L_TrustedLoc20″>Trusted Location #20</string>
add after it  the below for 21
<string id=”L_TrustedLoc21“>Trusted Location #21</string>

search for  <presentation id=”L_TrustedLoc20”>
add at the end of it the below for 21

<presentation id=”L_TrustedLoc21“>
<textBox refId=”L_pathcolon318“>
<label>Path:</label>
</textBox>
<textBox refId=”L_datecolon319“>
<label>Date:</label>
</textBox>
<textBox refId=”L_descriptioncolon320“>
<label>Description:</label>
</textBox>
<checkBox refId=”L_allowsubfolders321“>Allow sub folders:</checkBox>
</presentation>

Once done making the edits copy the new office2010.admx to C:\windows\syvol\domain\policies\policy definitions and the new office2010.adml to the C:\windows\syvol\domain\policies\policy definitions\en-us

When you restart your Group Policy Management Editor you should see the new location

Once the GPO has been applied on a windows client in Office the trusted loactions will show the new 21st location

Adding the admx files from Office 2010 admin templates into your GPMC

I had to add some Outlook 2010 specific GPO’s this week and found the instructions available on the net weren’t quite adequate. So I thought I would explain the procedure I took to get it done.

First off, you will need to download the admin template files Get them here

The 32bit and 64bit admx files are identical.  You only need the different versions if you are using the Office Customization Tool (OCT)

The downloaded file is a self-extracting file. Just launch it and extract the file to a folder. Inside that folder will be an admx folder and the corresponding language files (in their own folders). There will also be an adm folder (these are the older style adm template files) and a admin folder (which you only need if your using OCT and don’t have the enterprise office install)

Now go to the folder C:\windows\syvol\domain\policies

Create a folder inside of policies folder called policydefinitions  and copy all the files from the admx folder that was created  from the extraction  and any language file folders you may need. The complete folder path will be C:\windows\syvol\domain\policies\policydefinitions 

In my case I added all the office admx files and only the corresponding English languages.

admx locations

Close your group policy console if open and re-open it. As shown below, all of the Office 2010 admx template files will now show up under Administrative templates since it is retrieving them automatically from the central store.

policy

In this particular case I was adding a GPO to automatically check user spelling before sending emails.

spelling rule

That’s It. Now that wasn’t too difficult after all