I have tried to install and uninstall office and I get a "Error 1326. Error getting file security. How to fix?

Well, I found the fix while I was writing this. When the Error box pops up, it gives a path, go to the folder and take ownership through security. The path in my case was in a hidden folder: C:\ProgramData\Microsoft\Office\Data.

What a pain....