P2V Error: IP address already assigned to another adapter

After P2V migration, I have faced the IP Conflict issue multiple times in windows operating systems with the error stating “The IP address XXX.XXX.XXX.XXX you have entered for this network adapter is already assigned to another adapter” even though the networking shows only one VMware virtual NIC is assigned. This is because of the physical nics have not been entirely uninstalled and it is appearing as hidden devices in the device manager of windows servers. This hidden network adapters are also called as ghosted network adapter.
To make the ghosted network adapter visible in the Device Manager, Open Command Prompt and type the below command
set devmgr_show_nonpresent_devices=1


Open device Manager by typing “start devmgmt.msc”
Click View > Show Hidden Devices. Expand the Network Adapters by clicking the plus sign and Right-click the dimmed network adapter, then click Uninstall. Repeat the above steps for all dimmed network adapters and assign the static IP address to VMware virtual NIC. The above step resolved my issue all the times. Thanks for reading !!