Tuesday, May 24, 2016

Error 1911 - Could Not Register Type Library

Recently I ran into an issue while attempting to install MS SQL 2014 Management Studio on a Windows 2012 R2 Server. While it was able to install some of the components, the most important ones failed to install. I kept running into an error called 1911 where it was not able to register a certain file. After doing some research online, I noticed that a lot of people running multiple versions of Windows had the following update installed on their system KB3072630.

The simple fix for me was to remove the update and install the application. This allowed me to successfully install the SQL Management Studio without a problem. If you would like to keep your system secure, I would advise that you install the update to patch the vulnerability once again. Sophos published an article with a little more information, if interested, you can follow this link.

Tuesday, May 3, 2016

Activating Windows 7 - Error: 0x80070005 Access Denied

Today I ran into an issue while trying to activate Windows 7 on a workstation.  While trying to import a key via the slmgr.vbs /ipk command, I received the following error. 0x80070005 Access denied: the requested action required elevated privileges.


The strange thing about this error is that I had logged on with an administrator account and I even tried it from an elevated command prompt. It turns out that the workstation was missing some crucial registry entries. What worked for me was importing the following (copy the following text and change the extension to .reg).

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-18]

"Flags"=dword:0000000c
 "State"=dword:00000000
 "RefCount"=dword:00000001
 "Sid"=hex:01,01,00,00,00,00,00,05,12,00,00,00
 "ProfileImagePath"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,\
   00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
   5c,00,63,00,6f,00,6e,00,66,00,69,00,67,00,5c,00,73,00,79,00,73,00,74,00,65,\
   00,6d,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-19]
 "ProfileImagePath"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,\
   00,73,00,5c,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,50,00,72,00,6f,00,\
   66,00,69,00,6c,00,65,00,73,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,65,\
   00,72,00,76,00,69,00,63,00,65,00,00,00
 "Flags"=dword:00000000
 "State"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-20]
 "ProfileImagePath"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,\
   00,73,00,5c,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,50,00,72,00,6f,00,\
   66,00,69,00,6c,00,65,00,73,00,5c,00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,\
   00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,00,00
 "Flags"=dword:00000000

I can't guarantee that this will work for you, but it worked for me. If it doesn't, there are other possible solutions where I originally found this solution.  Full credit goes to Shantanu over at troubleshootingwindows.com.