Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


March 2008

Use ADSI Edit to Associate File Extensions

RSS
Subscribe to Windows IT Pro | See More Active Directory (AD) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Executive Summary:

Microsoft's Group Policy Software Installation works in conjunction with Microsoft Group Policy and Microsoft Active Directory (AD) to manage applications' life cycles, including their deployment. Unfortunately, not all applications are designed to be deployed with Group Policy Software Installation. For example, Microsoft Visio 2007 Viewer wasn't designed to be deployed that way. Although you can make some tweaks that enable you use Group Policy Software Installation for deployment, one possible consequence is that these applications don't register their file extensions, so the auto-install feature doesn't work. Using Microsoft Visio 2007 Viewer as an example, here's how you can use ADSI Edit to manually add the file extensions to the appropriate Group Policy Object (GPO), thereby fixing the problem.


Applications that you deploy with Group Policy Software Installation sometimes don’t register their file extensions. Consequently, when someone double-clicks a file that has an extension of one of those published applications, the autoinstall feature doesn’t work. This situation most often occurs in applications that weren’t designed for deployment through Group Policy Software Installation but were deployed anyway through some minor tweaks. (If you’re unfamiliar with Group Policy Software Installation, see technet2.microsoft.com/windowsserver/en/library/4bdaf0f7-b7ac-41a6-9d25-9eab6aa1965c1033.mspx.)

One way to solve the file extension problem is to use ADSI Edit to manually add the file extensions to the Group Policy Object (GPO) that publishes the applications. To show you how this solution works, let’s walk through the steps you’d use to add the file extension for Microsoft Visio 2007 Viewer, which unfortunately wasn’t designed for deployment through Group Policy Software Installation. Here are the steps you need to follow:

1. Download Visio 2007 Viewer (visioviewer.exe) from the Microsoft Download Center (www.microsoft.com/downloads/details.aspx?FamilyId=D88E4542-B174-4198-AE31-6884E9EDD524&displaylang=en). You’ll need WinZip to unzip this file. If you don’t have WinZip, you can use 7-Zip, which is freeware that you can download from www.7-zip.org.

2. Double-click visioviewer .exe. In the window that appears, right-click visioviewer.exe and select the option to extract the files to a new folder. After the extraction operation completes, the folder should contain five files, including vviewer.msi. Copy that folder to the share you use for GPO-installed packages.

3. Create a new GPO, go to the User Configuration\Software Installation folder in the Microsoft Management Console (MMC) Group Policy snap-in, and use the vviewer.msi file to publish the application. Because Microsoft didn’t create Visio 2007 Viewer with GPO installation in mind, the file extension .vsd doesn’t get registered.

4. Obtain the globally unique identifier (GUID) of the GPO you used to publish Visio 2007 Viewer. To get it, open the GPO and move to the root level, which is the level above Computer Configuration. Right-click and select Properties. The GUID appears in the Unique name field.

5. Use ADSI Edit to edit the GPO. (If you don’t have this tool installed already, you can find it in the Windows Server 2003 Support Tools.) Under the Start menu, select Run. In the Run dialog box, type adsiedit.msc and click OK. After ADSI Edit opens, go to the Action menu and select the Connect to option to open the Connection Settings dialog box. In the dialog box’s Connection Point section, click Select a well known Naming Context and select Domain from the list. In the Computer section, enter the name of your nearest domain controller (DC).

Click OK.

6. Navigate to Domain, DC=<your AD domain’s LDAP name>,CN=System, CN=Policies,CN=<your GPO’s GUID>,CN=User,CN=Class Store,CN=Packages. Here you’ll find representations for all your GPOs. If you have more than one GPO, you’ll have to manually find the correct one by doubleclicking each GPO and checking the value of the displayName attribute, which needs to be Visio Viewer in this case.

7. After you find the correct GPO, look for its fileExtPriority attribute and open it. (If you don’t see this attribute, clear the Show only attributes that have values check box.) In the dialog box that appears, enter the extensions you want to associate with this package. Visio 2007 Viewer’s extension is .vsd, so you’d enter

Continue to page 2

   Previous  [1]  2  Next 


Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Microsoft Kills OneCare, Will Launch Free Security Solution

Microsoft on Tuesday announced that it would retire its $50-a-year security subscription product, Windows Live OneCare, and replace it with a free solution codenamed "Morro." Unlike OneCare, however, Morro will focus only on core anti-malware features and ...

The website is down because someone removed the X-Box

What happens when a manager mistakes a server for a games console. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


Related Articles The Group Policy Route to Office Deployment and Management

How can I use the ADSI Edit tool to check my domain and forest modes?

Using Group Policy to Deploy XP

A Warning About the ADSI Edit Tool

Active Directory (AD) Whitepapers Sustainable Compliance: How to reconnect compliance, security and business goals

Managing Unix/Linux with Microsoft System Center Operations Manager 2007 Cross Platform Extensions Beta

Addressing the Insider Threat with NetIQ Security and Administration Solutions

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Windows 2003: Active Directory Administration Essentials

Related Active Directory (AD) Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing