Thanks so much once again for replying.
You are true, it should receive localizedMessage. However, the text is not getting displayed irrespective of any warning or error.
When I migrate the VM, I receive this message which says there is Connected device.
Move-VM : 8/20/2013 2:41:17 AM Move-VM The operation for the entity VirtualMachine-vm-27421 failed with the following message:
"Currently connected device 'CD/DVD Drive 1' uses backing '[] /vmimages/tools-isoimages/linux.iso', which is not accessible."
At C:\Scripts\Testing\4.ps1:45 char:40
+ Get-VM -Location $SourceHName | Move-VM <<<< -Destination (Get-Vmhost $DestHName) | Export-Csv $attach -NoTypeInformation -UseCulture
+ CategoryInfo : NotSpecified: (:) [Move-VM], CannotAccessVmDevice
+ FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation.ViCore.Cmdlets.Co
mmands.MoveVM
Can't we receive such messages or texts which is easily readable.