Article ID: 2619572 - Last Review: November 21, 2011 - Revision: 3.0
"HTTP Error 401.1" error message when Msiexec.exe updates an MSI file in Windows Vista, in Windows 7, in Windows Server 2008, or in Windows Server 2008 R2
System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
Assume that you deploy an application to a client computer that is running one of the following operating systems by using System Center Configuration Manager 2012:
Windows Vista
Windows 7
Windows Server 2008
Windows Server 2008 R2
When the deployment of the application is finished, the Microsoft Installer Package (MSI) file is removed from the local drive. Then, the ConfigMgr client updates the MSI source list by accessing the content server. This behavior is controlled by the self-healing functionality. When the self-healing functionality is triggered, Msiexec.exe tries to access the content path anonymously instead of by using the credentials of the user who currently logs on the client computer. However, the Secure Windows Initiative (SWI) guidelines do not allow anonymous access to content servers. Therefore, you receive the following error message:
HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
Note The issue occurs only when the content server is indicated by using a URL.
This update adds an automatic logon level that determines when it is acceptable for WinHTTP to include the default credentials in a request. The update adds the following logon level:
WINHTTP_AUTOLOGON_SECURITY_LEVEL_LOW
WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM
WINHTTP_AUTOLOGON_SECURITY_LEVEL_HIGH
By default, the level is set to WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM. This is the recommended logon level. For more information about optional security levels, visit the following Microsoft website:
To set the automatic logon security level, set the following registry entry under the HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer registry subkey:
Name
WinHttpAutoLogonLevel
Type
String
Value
Available values are listed in the following table:
Collapse this tableExpand this table
Value
Meaning
L
WINHTTP_AUTOLOGON_SECURITY_LEVEL_LOW
M
WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM
H
WINHTTP_AUTOLOGON_SECURITY_LEVEL_HIGH
After you install this update and configure the logon level, Msiexec.exe uses the WinHttpSetCredentials function to pass the required authorization credentials to the content server if the first anonymous access request fails.
How to obtain this update
The following files are available for download from the Microsoft
Download Center:
Collapse this tableExpand this table
Operating system
Update
All supported x86-based versions of Windows Vista
Collapse this imageExpand this image
Download the update package now.
(http://www.microsoft.com/downloads/details.aspx?FamilyId=ce9593ca-2120-4f5d-ba0f-26f692396004)
All supported x64-based versions of Windows Vista
Collapse this imageExpand this image
Download the update package now.
(http://www.microsoft.com/downloads/details.aspx?FamilyId=444f06d7-0f0e-48ec-8851-12cb0819dbe6)
All supported x86-based versions of Windows Server 2008
Collapse this imageExpand this image
Download the update package now.
(http://www.microsoft.com/downloads/details.aspx?FamilyId=04b0f64f-09d9-4a9a-b771-dcfb3b04063f)
All supported x64-based versions of Windows Server 2008
Collapse this imageExpand this image
Download the update package now.
(http://www.microsoft.com/downloads/details.aspx?FamilyId=b7706bdc-6e44-4b7c-b38f-5b960dfea64e)
All supported IA-64-based versions of Windows Server 2008
Collapse this imageExpand this image
Download the update package now.
(http://www.microsoft.com/downloads/details.aspx?FamilyId=ddf99886-b041-4509-803c-c352b0405e0e)
All supported x86-based versions of Windows 7
Collapse this imageExpand this image
Download the update package now.
(http://www.microsoft.com/downloads/details.aspx?FamilyId=5f78f20d-23d9-438d-84da-7450df3d1db3)
All supported x64-based versions of Windows 7
Collapse this imageExpand this image
Download the update package now.
(http://www.microsoft.com/downloads/details.aspx?FamilyId=5eb8a045-d5a4-4a16-ae39-b23ebf701481)
All supported x64-based versions of Windows Server 2008 R2
Collapse this imageExpand this image
Download the update package now.
(http://www.microsoft.com/downloads/details.aspx?FamilyId=c130620a-e906-4c24-85a1-20d16caa8aa8)
All supported IA-64-based versions of Windows Server 2008 R2
Collapse this imageExpand this image
Download the update package now.
(http://www.microsoft.com/downloads/details.aspx?FamilyId=549b071e-041b-4771-a20a-567202f7dba6)
For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591
(http://support.microsoft.com/kb/119591/
)
How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.
Prerequisites
To apply this update, you must be running one of the following operating systems:
Windows Vista Service Pack 2 (SP2)
Windows Server 2008 Service Pack 2 (SP2)
Windows 7
Windows 7 Service Pack 1 (SP1)
Windows Server 2008 R2
Windows Server 2008 R2 Service Pack 1 (SP1)
For more information about how to obtain a Windows Vista service pack, click the following article number to view the article in the Microsoft Knowledge Base:
935791
(http://support.microsoft.com/kb/935791/
)
How to obtain the latest Windows Vista service pack
For more information about how to obtain a Windows Server 2008 service pack, click the following article number to view the article in the Microsoft Knowledge Base:
968849
(http://support.microsoft.com/kb/968849/
)
How to obtain the latest service pack for Windows Server 2008
For more information about how to obtain a Windows 7 or a Windows Server 2008 R2 service pack, click the following article number to view the article in the Microsoft Knowledge Base:
976932
(http://support.microsoft.com/kb/976932/
)
Information about Service Pack 1 for Windows 7 and for Windows Server 2008 R2
Registry information
To use the update in this package, you do not have to make any changes to the registry.
Restart requirement
You must restart the computer after you apply this update.
Update replacement information
This update does not replace a previously released update.
File information
The global version of this update installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows Vista and Windows Server 2008 file information notes
The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 and for Windows Vista" section. MUM files and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows Server 2008 and of Windows Vista
Collapse this tableExpand this table
File name
File version
File size
Date
Time
Platform
Msi.dll
4.5.6002.18518
2,242,560
16-Sep-2011
15:47
x86
Msi.dll
4.5.6002.22718
2,245,120
16-Sep-2011
15:29
x86
Msimsg.dll
4.5.6002.22718
2,560
16-Sep-2011
13:28
x86
Msihnd.dll
4.5.6002.22718
332,800
16-Sep-2011
15:29
x86
For all supported x64-based versions of Windows Server 2008 and of Windows Vista
Collapse this tableExpand this table
File name
File version
File size
Date
Time
Platform
Msi.dll
4.5.6002.18518
3,109,888
16-Sep-2011
16:10
x64
Msi.dll
4.5.6002.22718
3,113,984
16-Sep-2011
15:25
x64
Msimsg.dll
4.5.6002.22718
2,560
16-Sep-2011
13:35
x64
Msihnd.dll
4.5.6002.22718
503,296
16-Sep-2011
15:25
x64
Msi.dll
4.5.6002.18518
2,242,560
16-Sep-2011
15:47
x86
Msi.dll
4.5.6002.22718
2,245,120
16-Sep-2011
15:29
x86
Msimsg.dll
4.5.6002.22718
2,560
16-Sep-2011
13:28
x86
Msihnd.dll
4.5.6002.22718
332,800
16-Sep-2011
15:29
x86
For all supported IA-64-based versions of Windows Server 2008
Collapse this tableExpand this table
File name
File version
File size
Date
Time
Platform
Msi.dll
4.5.6002.18518
5,933,568
16-Sep-2011
15:35
IA-64
Msi.dll
4.5.6002.22718
5,943,296
16-Sep-2011
15:07
IA-64
Msimsg.dll
4.5.6002.22718
2,560
16-Sep-2011
13:30
IA-64
Msihnd.dll
4.5.6002.22718
1,085,952
16-Sep-2011
15:07
IA-64
Msi.dll
4.5.6002.18518
2,242,560
16-Sep-2011
15:47
x86
Msi.dll
4.5.6002.22718
2,245,120
16-Sep-2011
15:29
x86
Msimsg.dll
4.5.6002.22718
2,560
16-Sep-2011
13:28
x86
Msihnd.dll
4.5.6002.22718
332,800
16-Sep-2011
15:29
x86
Windows 7 and Windows Server 2008 R2 file information notes
The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 R2 and for Windows 7" section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows 7
Collapse this tableExpand this table
File name
File version
File size
Date
Time
Platform
Msi.dll
5.0.7600.16888
2,341,888
18-Sep-2011
01:00
x86
Msi.dll
5.0.7600.21057
2,342,400
18-Sep-2011
01:02
x86
Msi.dll
5.0.7601.17695
2,341,888
18-Sep-2011
00:56
x86
Msi.dll
5.0.7601.21822
2,341,888
18-Sep-2011
02:39
x86
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
Collapse this tableExpand this table
File name
File version
File size
Date
Time
Platform
Msi.dll
5.0.7600.16888
3,213,312
18-Sep-2011
01:43
x64
Msi.dll
5.0.7600.21057
3,215,872
18-Sep-2011
01:44
x64
Msi.dll
5.0.7601.17695
3,215,872
18-Sep-2011
01:56
x64
Msi.dll
5.0.7601.21822
3,215,872
18-Sep-2011
03:03
x64
Msi.dll
5.0.7600.16888
2,341,888
18-Sep-2011
01:00
x86
Msi.dll
5.0.7600.21057
2,342,400
18-Sep-2011
01:02
x86
Msi.dll
5.0.7601.17695
2,341,888
18-Sep-2011
00:56
x86
Msi.dll
5.0.7601.21822
2,341,888
18-Sep-2011
02:39
x86
For all supported IA-64-based versions of Windows Server 2008 R2
Collapse this tableExpand this table
File name
File version
File size
Date
Time
Platform
Msi.dll
5.0.7600.16888
6,183,936
18-Sep-2011
00:36
IA-64
Msi.dll
5.0.7600.21057
6,184,960
18-Sep-2011
00:47
IA-64
Msi.dll
5.0.7601.17695
6,184,960
18-Sep-2011
00:36
IA-64
Msi.dll
5.0.7601.21822
6,184,960
18-Sep-2011
00:43
IA-64
Msi.dll
5.0.7600.16888
2,341,888
18-Sep-2011
01:00
x86
Msi.dll
5.0.7600.21057
2,342,400
18-Sep-2011
01:02
x86
Msi.dll
5.0.7601.17695
2,341,888
18-Sep-2011
00:56
x86
Msi.dll
5.0.7601.21822
2,341,888
18-Sep-2011
02:39
x86
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684
(http://support.microsoft.com/kb/824684/
)
Description of the standard terminology that is used to describe Microsoft software updates