mandag, november 13, 2006

DHCP Snap-in failed to initialize

After removing an unused reservation i started getting a "Snap-in failed to initialize" error in dhcpmgmt.msc. Googling around led me to KB902954 (You may receive a "Snap-in Failed to Initialize" error message when you try to view DHCP scope reservations on a Windows Server 2003-based DHCP server http://support.microsoft.com/kb/902954).
The KB states that this error may occur if you have a DHCP-scope with exactly 87 reservations. That was my case exactly, 87 reservations sharp. You now have two options: call MS PSS to get a hold of the hotfix, or use black magic to remove or add a reservation to evade the 87-reservations-blues.

I ended up using black magic (enter netsh), adding a "bogus" reservation with the command

C:\>netsh
netsh>dhcp server 192.168.4.8
netsh dhcp server>scope 192.168.4.0
Changed the current scope context to 192.168.4.0 scope.
netsh dhcp server scope>add reservedip 192.168.5.223 0001e697fa31
Command completed successfully.


Now the number of reservations in this scope exceeds 87 and dhcpmgmt.msc works like a charm! Anyone care to elaborate of why 87 reservations makes the DHCP Management Console go haywire?


This issue seems to be resolved in Windows Server 2003 Service Pack 2 beta (2786).