PowerCLI one liner to obtain RDM naa numbers from a vCenter datacenter

Launch PowerCLI and connect to a vCenter server:

Connect-VIServer vc01.vi.local

Then run the command below:

get-datacenter DataCenterName | Get-VM | Get-HardDisk -DiskType "RawPhysical","RawVirtual" | Select Parent,Name,CapacityKB,Filename,ScsiCanonicalName,DeviceName | export-csv C:\GetNAAs.csv

Open that csv file and the RDM naa numbers are there for your perusal.

Removing Ghost NICs from a Virtual Machine after a P2V

When performing P2V (Physical to Virtual) migrations ‘old’ devices often remain hidden within Device Manager. They generally do not affect the Virtual Machine but can prevent you from assigning or changing IPs on the new vNICs (Virtual NICs). In Windows you will see the following:

The IP address XXX.XXX.XXX.XXX you have entered for this 
network adapter is already assigned to another adapter

To resolve this issue you will need to remove the Ghost or hidden NIC(s) on the system after which you will be able to assign IPs to a vNIC. Unfortunately these Ghost NICs are hidden so to make then visible perform the following steps:

1. Click Start > Run.
2. Type CMD in the Open dialogue box and hit enter.
3. At the command prompt, run this command:

set devmgr_show_nonpresent_devices=1

4. From within the same command prompt box run the following command:

start devmgmt.msc

5. This will load Device Manager. Ensure that you run both commands above in the same Command Prompt box as they must be run within the same environment for this whole process to work, per the screenshot below:

6. Once in Device Manager, click View > Show Hidden Devices:

7. Expand the Network Adapters tree (click the plus sign next to the Network Adapters entry) and you will see the old NICs which appear greyed out:

8. Right-click the old NIC(s), then click Uninstall.
9. Once all of the old NICs are uninstalled you will be able to assign IP addresses to the vNIC.

The steps above are also covered in VMware KB articles 2010145 and 1179.