Luc,
When I use Get-Datacenter| Select Name,@{N='VIPath';E={$_.ExtensionData|Get-VIPath}}
I got the following VIPath :
VIPath
---------
DC1
Folder01/DC2
I'm not sure I used your Get-VIPath. I thought only Get-VILocation was incorrect
I'm gonna copy/paste this function and try it right now, Thank you !