Translate this site using Windows Live Translator:
Where have all the IRM templates gone for the XPS viewer? - RMS: Protecting Your Assets. - Site Home - TechNet Blogs

RMS: Protecting Your Assets.

The Protecting 'My' Asset Disclaimer: This is my 'un-official', 'in my spare time', 'use at your own risk', all things RMS (Rights Management Services), IRM (Information Rights Management), IPP (Information Protection Pla

Where have all the IRM templates gone for the XPS viewer?

Where have all the IRM templates gone for the XPS viewer?

  • Comments 5
  • Likes

You may or may not have noticed when protecting XPS documents, that the usual list of RMS templates under the File>Permissions section is missing, even though you can see the templates in your other Office applications.

Just like the Office applications, the XPS viewer requires that you set a registry key in order to display the templates.

Here is that key:

Key: HKCU/Software/Microsoft/XPSViewer/Common/DRM
Reg_Sz: AdminTemplatePath
Value: <path to templates>

 BTW: This may only apply to the XPSViewer for Vista. I need to check.

Update: I checked this on XP, and you in fact can *only* use a Reg_Sz value, which means you can't use environment variables.

-Jason

Comments
  • I've been digging all over the internet looking for a way to get XPS Viewer to pickup the templates used by the other office applications.  I was thrilled to finally find your blog.  

    Unfortunately the solution is not working for me (on xpsp2). I created the key as outlined but no templates were picked up.  I thought perhaps it wasn't expanding the environment variable so I then renamed the old key and created a key of type REG_EXPAND_SZ, this crashes the viewer when you click on the permissions button (apparently it lacks security permissions to expand the environment variable in ie7).  I reverted ack to the REG_MULTI_SZ string and gave the full path to the templates.  Still no luck.

    Any ideas?

  • I too can't get this to work on Vista.

    Regmon shows XPSViewer.exe successfully querying the key/value created as per Jason's post above, but after it reads the admintemplatepath value, it never queries that directory for the XML-based template files.

    I've tried both a UNC path (to the RMS server template share) and also to a local path (C:\temp, where I copied the template file), but XPSViewer never queries the directory.

    Has anyone ever gotten this to work?

  • Read the post again. I updated it with new info. Unlike Office, the XPSViewer has no way to handle anything besides Reg_SZ values, which means you can't use %environmentvariables%

    -Jason

  • I tried to figure out how to push this out with group policy on Windows 7, but I'm having no luck so far. Any suggestions? Would it be supported as a REG_MULTI_SZ on Windows 7 so it can work with the Windows 7 scheduled tasks to pull down templates?

  • Sorry, I meant would it be supported as a REG_EXPAND_SZ to go with the task... (Even if I set it manually, I can't get it to work as a REG_EXPAND_SZ, so I'm guessing the answer to that is no.)

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment