Hi Laxman singh,
Thank you for providing those additional logs. The new errors you uncovered contain the absolute smoking gun for this issue. This is a known architectural bottleneck in Windows Server 2022, particularly in virtualized environments. The Start Menu and IIS failures are not the actual problem; they are merely the final victims of a deep-system RPC and DCOM initialization collapse.
Here is exactly what is happening in your boot sequence:
- During the first boot, the system's CPU and disk I/O are heavily taxed (often called a "boot storm" in VM clusters). The RPC Endpoint Mapper fails to initialize in time, throwing the "endpoint mapper database entry could not be created" error.
- Because the Endpoint Mapper fails, DCOM cannot register local servers, resulting in the "DCOM timeout" error.
- Without DCOM, the
SystemEventsBrokerdies. Without the events broker, theBackground Tasks Infrastructuredies. Without background tasks, the Start Menu, Windows Search, and IIS completely fail to launch.
When you restart the server a second time, the core files are already cached in RAM, allowing the RPC and DCOM services to start up fast enough to beat the hardcoded timeout clock, which is why everything magically works on reboot.
To permanently resolve this long-term without relying on GPO wait policies, you need to implement the following two infrastructure fixes across your Server 2022 fleet:
1. Increase the Global Service Timeout (The Primary Fix) By default, Windows Server strictly gives services only 30 seconds to start before forcefully killing them and logging a timeout error. You need to give the RPC/DCOM brokers more time to register during that heavy first boot.
Open the Registry Editor (regedit).
Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
Right-click the Control folder, select New > DWORD (32-bit) Value, and name it ServicesPipeTimeout.
Double-click it, set the Base to Decimal, and enter a value of 60000 (which gives the system 60 seconds) or 120000 (120 seconds).
2. Verify the IPv6 Registry Configuration The "endpoint mapper database entry could not be created"
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
If the DisabledComponents registry value exists, ensure it is set to 0x20 (which safely prefers IPv4) and not 0xFF
Implementing the ServicesPipeTimeout
Tracy.