Enabling PXE for DP failed with PXE Provider already registered – 0x000000b7

Enabling PXE for DP failed with PXE Provider already registered – 0x000000b7

ISSUE

Enabling PXE for DP failed with PXE Provider already registered – 0x000000b7

smsdpprov.log

PxeProviderRegister failed with 0x000000b7
PxeProviderRegister has failed (0x800700b7)
Non fatal error. PXE Provider already registered.

Error Code: 0x000000b7 (183)
Error Name: ERROR_ALREADY_EXISTS
Error Source: Windows
Error Message: Cannot create a file when that file already exists.

Error Code: 0x800700b7(183)
Error Name: ERROR_ALREADY_EXISTS
Error Source: Windows
Error Message: Cannot create a file when that file already exists.

SOLUTION

  1. Follow this guide to re-enable PXE for distribution point – https://learn.microsoft.com/en-us/troubleshoot/mem/configmgr/os-deployment/troubleshoot-pxe-boot-issues#solution-2-reinstall-pxe-use-only-if-solution-1-didnt-resolve-the-issue
  2. But before you go to enable PXE, make sure that the following registry entries are gone after uninstalling WDS and reboot:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WDSServer

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WDSServer\WDSTFTP

If the two entries are still present, delete them manually and then proceed with enabling PXE again.

To understand how PXE work, refer to – https://learn.microsoft.com/en-us/troubleshoot/mem/configmgr/os-deployment/understand-pxe-boot

PXE boot issue – “no advertisements found” and “found optional advertisement”

PXE boot issue – “no advertisements found” and “found optional advertisement”

When it comes to PXE boot, various problems can occur. Recently a customer turned to me reporting that their testing physical machine failed to PXE boot. One of the key information was that the testing machine was in a different subnet than the pxe-enabled distribution point. So, I asked them to do a test in the same subnet of the distribution point. They did and told me that there was no problem in that case. It is obvious that there is a problem with the network between the two subnets, that is the subnet where the testing client was and the one which the distribution point belonged to.

I asked them to capture a network packet file from both the distribution point and the testing client. The network trace file capture on the distribution point showed that no DHCP request ever received from the testing client, though the testing client could send DHCP request to the DHCP server and could get a valid IP address. Coupled with the fact that their distribution point and the testing client computer were not on the same subnet, I asked them to verify if IP Helper was properly configured (refer here and here). It took days before they came back to me again telling me that IP Helper has been configured.

However, a new issue arose. The testing client shows the following page.

smspxe.log from the distribution point shows the following messages –

12-15-2020 15:57:39.943 SMSPXE 2744 (0xab8) 00:D8:61:AE:24:3D, 40364D80-1925-11EA-BB2A-98251BAD1100: Device is in the database.
12-15-2020 15:57:39.943 SMSPXE 2744 (0xab8)
Operation: BootReply (2) Addr type: 1 Addr Len: 6 Hop Count: 0 ID: 3D24AE64
Sec Since Boot: 16 Client IP: 010.138.001.168 Your IP: 000.000.000.000 Server IP: 192.168.210.121 Relay Agent IP: 000.000.000.000
Addr: 00:d8:61:ae:24:3d:
BootFile: smsboot\x86\wdsnbp.com
Magic Cookie: 63538263
Options:
Type=53 Msg Type: 5=Ask
Type=54 Svr id: 192.168.210.121
Type=97 UUID: 00804d36402519ea11bb2a98251bad1100
Type=60 ClassId: PXEClient
Type=250 02010105040000002903020014040200ba062c436f6e66696775726174696f6e204d616e61676572206973206c6f6f6b696e6720666f7220706f6c6963792e0b0101
12-15-2020 15:57:56.509 SMSPXE 2744 (0xab8) 00:D8:61:AE:24:3D, 40364D80-1925-11EA-BB2A-98251BAD1100: no advertisements found
12-15-2020 15:57:56.556 SMSPXE 2744 (0xab8) 00:D8:61:AE:24:3D, 40364D80-1925-11EA-BB2A-98251BAD1100: No boot action. Aborted.

Note that the log says the device is in the database but no advertisements found and thus boot action was aborted. This is an important hint indicating that the device was not in a proper collection to which the task sequence was deployed. After they put the testing client into a collection and initiated a reboot as I had suggested, the previous issue disappeared, but the testing client computer stopped at the screen below.

Spotting the message “Press F12 for network service boot“, I asked the customer if he did press on F12 and he replied with a firm “Yes”. Okay. Investigation had to continue. Turning to smspxe.log, which, however, showed no errors at all –

12-16-2020 15:05:00.957 SMSPXE 5828 (0x16c4) ============> Received from client:
12-16-2020 15:05:00.957 SMSPXE 5828 (0x16c4)
Operation: BootRequest (1) Addr type: 1 Addr Len: 6 Hop Count: 0 ID: B3C3303F
Sec Since Boot: 0 Client IP: 010.138.001.177 Your IP: 000.000.000.000 Server IP: 000.000.000.000 Relay Agent IP: 000.000.000.000
Addr: 04:0e:3c:30:c3:b3:
Magic Cookie: 63538263
Options:
Type=53 Msg Type: 3=Request
Type=60 ClassId: PXEClient
Type=97 UUID: 001b705596f4a6ea11b39e040e3c30c3b3
Type=93 Client Arch: Intel x86PC
Type=250 0d0208000e010101020006050400000038ff
Type=55 Param Request List: 03013c8081828384858687
12-16-2020 15:05:00.957 SMSPXE 2744 (0xab8) Getting boot action for unknown machine: item key: 2046820353
12-16-2020 15:05:00.972 SMSPXE 2744 (0xab8) Not in SSL.
12-16-2020 15:05:00.988 SMSPXE 2744 (0xab8) Request using architecture 9.
12-16-2020 15:05:00.988 SMSPXE 2744 (0xab8) Not in SSL.
12-16-2020 15:05:01.004 SMSPXE 2744 (0xab8) Client boot action reply:
12-16-2020 15:05:01.004 SMSPXE 2744 (0xab8) Request retry.
12-16-2020 15:05:01.004 SMSPXE 2744 (0xab8) Not in SSL.
12-16-2020 15:05:01.019 SMSPXE 2744 (0xab8) Client boot action reply: e26f306a-c738-41d2-aa83-9cb460ae18be
12-16-2020 15:05:01.019 SMSPXE 2744 (0xab8) 04:0E:3C:30:C3:B3, 9655701B-A6F4-11EA-B39E-040E3C30C3B3: found optional advertisement S012000B
12-16-2020 15:05:01.019 SMSPXE 2744 (0xab8) Looking for bootImage S0100002
12-16-2020 15:05:01.035 SMSPXE 2744 (0xab8) Not in SSL.
12-16-2020 15:05:01.050 SMSPXE 2744 (0xab8) Not in SSL.

But “found optional advertisement” caught my eye. This message told us that the task sequence was deployed as Available and so it will prompt a message asking you to press F12 (refer here).

Looking at the network trace file captured on the testing client end, we could see DHCP requests were sent to the distribution point for wdsnbp.com and pxeboot.com files. All looked quite good. However, no more DHCP requests! Noting seemed wrong here. I scratched my head, not knowing what actually happened.

Then, I called the customer again asking him how he pressed F12 and he told me that he pressed F12 only once at the sight of the “Press F12 for network service boot” message on the screen. Only once! That was not enough… That only-once press on F12 would only bring the client into pxe boot but would not kick off the optional advertisement. With that thought, I asked him to keep on pressing down and up on F12. As I had expected, the issue was gone and pxe boot succeeded in the end.

References

Design a site like this with WordPress.com
Get started