Thursday, 22 July 2010

UPDATED: Profiling Office 2010, Visio 2010 and Project 2010 for XenApp Streaming

This is a fully working and tested guide to streaming Office 2010 to XenApp 6 (streamed to server), activating with a KMS server. 

It has taken me a couple of months on and off messing about with getting Office 2010 applications to stream on XenApp 6, with all the problems coming from the Office Software Protection Platform service that Office uses to activate now.  The problems I was having were not with the capturing of the stream (as you might assume) but with the setup of the XenApp servers to host the stream.

So, this guide should work – providing you are activating with a KMS server rather than MAK keys, which I am afraid I have not tried. 

NEW - Install a KMS server

The installation of your Key Management Server to activate Office 2010 isn’t something I am going to cover and many people will want to use MAK keys, but for this guide to work you should have KMS server.  Check you can actually install the apps you want to stream on a PC and that they activate (go to File > Help to see if they are activated – you should also see events in the KMS server’s event log)

NEW – Install a fresh XenApp Server

If you have previously tried and failed to stream Office 2010 to a XenApp server, just rebuild it.  Same if you have EVER installed any Office 2010 products (including Outlook, Project and Visio 2010) to that server.  Flatten it.  It should be a server that has never activated an Office product, or tried.

NEW – Use the Office 2010 Deployment tool for App-v

Yes, I know you’re not using app-v.  Just do it, it is essential if you ever want to host more than one SKU on this server.  So you might not need to do this if you are only going to use the main Office media, but be aware that the Outlook 2010 standalone media, Project 2010 or Visio 2010 won’t stream to it. 

Download the tool from:

There are instructions on how to use it here:

For instance, if you were to want to host Office Professional Plus 2010 and Project Professional 2010, extract the main download (the x64 one for Server 2008 R2) and run this command on the extracted files:

msiexec /i OffVirt.msi PROPLUS=1 OUTLOOK=1 PROJECTPRO=1

You should see a couple of events on the KMS server almost immediately containing the name of the new XenApp server.  The main problem is that after a reboot this will stop working, so if you are going to use this app to activate your servers with the KMS for Office licenses you should put this command in a startup script for the server.

If someone else has a better way of keeping these applications activated I would love to hear it!

Add the AppHubWhiteList entry to the XenApp server’s registry

If you will not sign your profile, you will need to add a registry key fix in order for the service that is a necessary part of the product’s activation system to work.

For details on this registry fix see this:

Basically, you have to create a REG_SZ registry value at HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Rade called AppHubWhiteList containing a list of the names of the file servers your streams will be served from, separated by semicolons if needed.

Install a profiler

  • Install a Profiler machine.  This should be the same OS as the one you are going to stream to. 
    • This needs to be at least v6 of the Streaming Profiler, the version that ships with XenApp 6.  Microsoft Office 2010 includes Services that will not work with previous versions of the Profiler.
    • If using Streamed To Server in XenApp 6, it should be a Windows Server 2008 R2 server and ideally be an member of the XenApp 6 farm (but don’t publish apps to it…)
    • It should not have the streaming client installed. 
    • The Streaming Profiler can be downloaded from My Citrix or from the XenApp 6 DVD.

Run the Microsoft Office Customization Tool

  • Copy the installer to your Profiler
  • Run setup.exe with the /admin switch (so if it is in c:\office14, click Start > Run > “c:\office14\setup.exe /admin”)
  • The Customization Tool should launch.  Pick your product edition or select an existing customization file if you’ve been here before and are making changes:


  • You get a popup about the OpenDocument file format.  What you choose here might depend on your company policy.  I selected Keep current settings but will look at the settings later.


  • On the left hand side, select “Install Location and Organization Name” in the Setup section.  Enter your company name.


  • Select “Licensing and user interface”.  Enter your MAK key if you are using one, otherwise select “Use KMS Client key”.  Accept the license agreement, select “Basic” and “Suppress modal”.


  • Click Features > Modify User Settings.  There are loads of settings here!  This is a screenshot of my completed settings (with “show configured settings only” selected"), the actual settings are below.  Look through the other settings, there may be other things you need.
    • Microsoft Office 2010 > Global Options > User Clear Type (enabled, set to “Office will use ClearType for text display”)
    • Microsoft Office 2010 > Global Options > Customize > Menu animations (disabled)
    • Microsoft Office 2010 > Tools | Autocorrect Options > Correct Two Initial Capitals (enabled)
    • Microsoft Office 2010 > Tools | Autocorrect Options > Capitalize first letter of sentence (enabled)
    • Microsoft Office 2010 > Tools | Autocorrect Options > Capitalize names of days (enabled)
    • Microsoft Office 2010 > Tools | Autocorrect Options > Correct accidental use of Caps Lock key (enabled)
    • Microsoft Office 2010 > Help > (disabled)
    • Microsoft Office 2010 > Privacy > Trust Center > Disable Opt-in Wizard on first run (enabled)
    • Microsoft Office 2010 > Privacy > Trust Center > Enable Customer Experience Improvement Program (disabled)
    • Microsoft Office 2010 > Privacy > Trust Center > Automatically receive small updates to improve reliability (disabled)
    • Microsoft Office 2010 > Language Settings > Primary Editing Language (enabled – choose your language!)
    • Microsoft Office 2010 > Services > Fax > Disable Internet Fax Feature (enabled)
    • Microsoft Outlook 2010 > Account Settings > Exchange > Cached Exchange Mode > Cached Exchange Mode (File | Cached Exchange Mode) (disabled)
    • Microsoft Outlook 2010 > Account Settings > Exchange > Cached Exchange Mode > Use Cached Exchange Mode for new and existing Outlook profiles (disabled)
    • Microsoft Outlook 2010 > Account Settings > Exchange > RSS Feeds > Turn off RSS feature (enabled)
    • Microsoft Outlook 2010 > Account Settings > Exchange > RSS Feeds > Default RSS feeds (disabled)
    • Microsoft Outlook 2010 > Account Settings > Exchange > SharePoint Lists > Default SharePoint lists (disabled)
    • Microsoft Outlook 2010 > Outlook Today Settings > Outlook Today availability (disabled)
    • Microsoft Outlook 2010 > Outlook Social Connector > Turn off Outlook Social Connector (enabled)
    • Microsoft Outlook 2010 > Outlook Options > Other > AutoArchive > Disable File|Archive (enabled)
    • Microsoft Outlook 2010 > Outlook Options > Other > AutoArchive > AutoArchive Settings (disabled)


  • Click Features > Set Feature Installation States.  For any Office applications you do not need, click the grey box by the application and select Not Available.  In my case, Access, OneNote, InfoPath and Publisher are not required.  For everything else, set them to run all from the computer.
  • Click Additional Content > Add Registry Entries.  Add the entries below (change the server name and port to the actual name and port of your KMS server.  If you don’t use a KMS server, you don’t need those). The ShowOptIn is a REG_DWORD, the PONT_STRING is a REG_SZ. 


  • Click Outlook > Outlook Profile (this is assuming you are using Microsoft Exchange and want to auto configure accounts)
    • Select Modify Profile
    • Click Add accounts
    • Select “Customize additional Outlook profile and account information”
    • Click Add
    • Enter something for Account Name (like “exchange”)
    • Enter an Exchange server
    • Leave User Name as %username%
    • Click More Settings
    • Click Cached Mode
    • Click Configure Cached Exchange Mode.
    • If you are going to disable Cached Exchange Mode on the XenApp servers (I would – but maybe not if streamed Offline to client PCs), leave this as is.  Otherwise, click the “User Cached Exchange Mode” checkbox.


    • Click OK and Finish.
  • Click File > Save As and save it to the Updates folder within your Office 2010 installer folder.  Give it a name starting with a “1” so it always installs before other updates you may put here in the future.
  • Close the Customization Tool and confirm.


  • Open the Streaming Profiler and click New Profile.
  • Click Next and give it a name (it can be changed later, but I would include a date or profile version number when saving it)
  • Click Next and do not Enable User Updates
  • Link Profiles if you wish – up to you.  It can be changed later as well.
  • Click Next past the Operating System screen, assuming the OS you want is selected.  Best practice is to have a new stream for every client you are streaming to – which if you are streaming to server is nice and easy as its just one OS to support. Assuming you are streaming to server and you are using the same OS as the servers you are streaming to, just click Next.
  • Choose Advanced Install
  • Select Run install program or command line script
  • Find and select Setup.exe in your Office14 folder
  • Click Next and Launch Installer
  • Click Customize and you should see any options you disabled (such as Microsoft Access) in the customization as disabled.  This is a good easy way of double checking your customization has been picked up okay.
  • Click Install Now.
  • Installation takes some time…


  • Click Close at the end of the install, then Next.
  • Click Next to Finish Installations if you have nothing else you know needs doing to your profile.  In this basic guide, we’re now done.
  • Run some of your key applications to check they perform as needed but DON’T run Outlook.  I’ve seen this cause everyone to get the same mailbox!
  • Click next and remove any shortcuts you don’t want.  This is a good place to add any switches you want to your applications, for example Outlook to configure it with a prf file.  Delete any shortcuts you will not use.
  • Click next (terminating applications if needed) until you get to the end, then click Finish to build the profile.
  • Save the profile to a file share – you will need at least about 1.75gb free to do this.

Publishing Applications

  • You should now be able to set up application shortcuts on your XenApp 6 farm
  • Run the Citrix Delivery Services Console (installed by default on a farm server)
  • Run Discovery as needed.
  • Expand your farm and right click Applications, click Publish Application
  • Enter Word 2010 as the name and click Next
  • Change the drop-down to Streamed To Server and click next
  • Locate the folder you saved the profile to and double click its .profile file.
  • Select Microsoft Word 2010 in the drop down and Next
  • Click Add to add servers.  Click next when done.
  • Click Add to add users.  Click Next when done.
  • Enter a folder for the shortcuts if needed.
  • Click Next and Finish.
  • If you now right click the new application and select Duplicate Application you can create copies.  With these, right click each one and select Application Properties.  In the Name and Location sections, rename them to Excel 2010, Outlook 2010, etc and change the dropdown to the right application.

Running the profile

Once you have your Profile, create a new application (Streamed to server in this example), pointing at your XenApp server and use the stream you just made.

Before you launch them for the first time, remember to check the AppHubWhiteList reg key (see above) is there and right, unless you signed the profile.  Also check you have used the Office 2010 Deployment Tool for app-v on it if you want to stream multiple SKUs to the server.  It should ideally be activated for Office 2010 on the KMS before your stream ever runs.

When you launch them for the first time you should see a new service start with some random characters at the start, like q2qwerqfq-osppsvc.  That’s the streamed service, and it should be running when your apps are.  Multiple logons will create multiple services. 

When they are launched, you should not see Setup continuing (that’s it trying to activate), it should just load the application.  You should also be able to go to File > Help and see those lovely words, Product Activated…



Ken said...

Thank you so much for this. I was having trouble finding instructions so well made.

I still strugged on the AppHubWhiteList regedit. Even then link was not entirely clear what to put in.

Peter Scheffler said...

Hi there

Thanx for the great post. I do have a question, however.

I am constantly having security/write issues trying to profile Office 2010. I've tried logging in as a Domain Admin and as Local Admin on the XenApp server and it still errors out, right at the start of the install (after the 'Install Now' button is pressed.)

The error seems to be security related. I get the following in the installation log file:

Error: Failed to install product: C:\MSOCache\All Users\{GUID}-C\OfficeMUI.msi ErrorCode: 3(0x3)

Then it rolls back out of the install. Has anyone else experienced this?

I have successfully built other Streamed apps (although never Office 2010).

Jim said...

Thank you for the post this helped me to resolve the issue I was having with Streaming Office 2010 components to Provisioned XenDesktop's.

Alex said...

Couple days ago I was working with excel file, but something happened and I lost all my data. To my great surprise first tool from Inet could help me. Besides I'm sure it would be useful in this or some other problem also - the file is not in recognizable format in Excel.

Anonymous said...

after installing the Office 2010 Deployment tool for App-v i cannot even see the installed application at the screen where you can start an app... And sometimes i receive the same error as Peter.

Removing the Deployment tool didnt help, i had to reinstall my machine...

Antonio G. Garcia said...

This information is incorrect the deployment kit cannot be inside the profile this will cause a install error and you wont see the application listed in the profiler please run the kit on the machined ur streaming to not the profiler.

Labmouse said...

Hi Antonio,

I absolutely agree that the deployment kit should be installed on the target XenApp server, not the profiler. Sorry if I didn't make that clear enough. The target server needs the AppHubWhiteList registry entry, the App-V kit in a startup script and should then run streamed Office 2010.

Personally I now install the main Office 2010 packages and then stream Visio, Project and Sharepoint Designer to the same server, letting the App-V tool license them all. This seems to work well for me as Office 2010 is faster and lighter Hosted rather than Streamed To Server.



Anonymous said...

hi i have created outlook profile for all users. when i run outlook with that profile each time a new PST file is being created..i do not have roaming profiles.. kindly help.

Broad said...

It is nice to see this list, it is mostly useful. I have a query can you please let me know is their any search code on google so that we can search only those blogs that are powered by instant comment approval. Can you please let me know the name of the companies that offers instant approval comment platform for blogs. Glass Tables

Chris said...

Do you have any insight in to doing this with MAK keys as opposed to KMS. Visio activates, but then 5 min later its saying it needs to be activated again.

Anonymous said...

Thanks for the article! I seem to have issues with streaming it to the server. It attempts to try to do a repair or reconfigure office which requires it to restart.

This causes a looping situation because when you restart office it starts all over again.

I have my KMS server setup right. DNS is correct, the AppHub key has my server listed that the profile is stored on (FQDN, netbios, and IP address), I've tried setting up a new streaming profiler server and profiling again. I always end up with a non working office 2010.

2007 works great so I think it is related to the activation or something.

Anonymous said...

great article - do you have any success for streaming access 2010 to a xenapp server where office 2010 standard is installed on?

it looks like a repair loop (another anoymous user has the same issue, too)

Post a Comment