Important
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur.
Before you install security update 4089229, run the following VBS script. Copy and paste this script into Notepad, and then save the file with a .vbs extension.
Instructions
Before you run the script, make sure that you back up the following registry key and subkeys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PnP\Pci\HackFlags
Note The script includes binary version checks around PCI.SYS file and sets the HackFlags registry key. For more information about this issue and the HackFlags registry key, see KB 2710558.
Set WshShell = WScript.CreateObject("WScript.Shell")
Set fs = CreateObject("Scripting.FileSystemObject")
Dim WindirFilePath,strPciFileVersion,strAryFileVersion1
WindirFilePath = WshShell.ExpandEnvironmentStrings("%WinDir%")
strPciFileVersion = fs.getfileversion(WindirFilePath & "\\system32\\drivers\\pci.sys")
strAryFileVersion1 = Split(strPciFileVersion, ".")
'pci.sys version check
If (strAryFileVersion1(0) = 6 And strAryFileVersion1(1) = 0 And strAryFileVersion1(2) = 6002 And strAryFileVersion1(3) < 22567) Then
Dim curFlag,hackFlag,path
curFlag = 0
path="HKLM\System\CurrentControlSet\Control\PnP\Pci\HackFlags"
'Get current HackFlags
On Error Resume next
curFlag = WshShell.RegRead(path)
On Error Goto 0
'Set new HackFlags
hackFlag = curFlag or 262144
WshShell.RegWrite path,hackFlag,"REG_DWORD"
Wscript.echo "HackFlags set"
Else
Wscript.echo "pci.sys is already updated. No need to set HackFlags"
End If
Note: If the IP address settings are lost after installing security update 4089229, you can manually adjust the HackFlags registry key.
Location: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\PnP\Pci
Key: HackFlags
Type: REG_DWORD
Set the following registry value and then restart the computer:
- If HackFlags doesn’t exist:
Value: 0x00040000
- If HackFlags does exist:
New Value: (<Existing Flags> | 0x00040000)
If the registry key already exists, combine the existing value with the "0x00040000" bitmask to change the existing Flags value to: <Existing Flags value> (bitwise OR) 0x00040000. This method respects both the previous and new values.
Examples:
Existing value: 0x0000001
New value: 0x00040001
Existing value: 0x0000020
New value: 0x00040020
Existing value: 0x0800001
New value: 0x08040001 |