OfficeBackgroundTaskHandlerRegistration Flashes a black CMD window every hour

This is an annoying issue I’ve been trying to find the answer to for a couple of days.

I get a quick flash on my screen with a black box which looks like a command window. I finally had this happen on a slow enough computer where I could see where it was running from. See below.

To fix this issue, do the following:

  1. Open task scheduler from the start menu
  2. Find Microsoft Office under tasks
  3. Disable OfficeBackgroundTaskHandlerRegistration

A fix from Microsoft on this issue is underway.

Outlook: the operation has been canceled due to restrictions in effect on this computer

That’s a long title.

We’ve had this issue on a Windows 2012 Terminal Server. When users click on any type of hyperlink in Outlook (or any other Microsoft product), it gives this error.

restriction-errorpng

This issue is quite interesting. It our case, it has been caused by removing Chrome from the system. But it did not uninstall properly, leaving un-removed registry keys all over the place.

What happens is, when Chrome is installed, it uses a class handler called ChromeHTML. When you click a link, Outlook looks for this class in the registry. If Chrome has not been removed correctly, you will get error above.

The method of fixing this would be to change the .html class under each HKEY_CURRENT_USER, but this is a headache. The better way is to copy htmlfile class, delete the old ChromeHTML class, and reimport htmlfile class as ChromeHTML. This sets ChromeHTML as Internet Explorer, fixing the issue for everyone.

The steps to fix this are as follows:

  1. Delete the ChromeHTML key from HKEY_LOCAL_MACHINESOFTWAREClassesChromeHTML
  2. Export the HKEY_LOCAL_MACHINESOFTWAREClasseshtmlfile key to your desktop, call it reg.reg
  3. Open the reg.reg file in notepad and do a word replace of htmlfile to ChromeHTML
  4. Save the notepad file and exit
  5. Run the registry file which will import the new key

Once users close Outlook and other Microsoft Office programs, the problem will be resolved.

Office 2013: Input lag on terminal servers (Word)

We have a shared environment which we have had issues with lately when customers on slow connections have input lag when using Microsoft Office 2013 applications, specifically, Word.

After much research and testing, we found this issue was to do with Hardware Acceleration that is enabled by default within Office 2013. This is great if you are on a normal desktop/laptop, but not so good on Terminal Server/Remote Desktop Services.

Office 2013

To disable this in word, do the following:

  1. Click File > Options
  2. Click Advanced
  3. Scroll down to Display
  4. Tick Disable hardware graphics acceleration

office2013/2016

Group Policy

For Group Policy, you need to have the following settings set:

vpxclient_2016-11-03_12-21-19

Hope this helps 🙂