VMware Cloud Community
leaderone2
Contributor
Contributor

get hardisk the filename value is null

when I run the command below, I cannot get the filename value, but when I choose another vm, it has values. What's wrong with this?

Get-VM hillstone_base_VM | %{Get-HardDisk -VM $_.name}| select filename

This machine is poweroff,and it has 2 HardDisks, the configuration is below:

小Q截图-20160111112109.png

thanks

Tags (1)
0 Kudos
3 Replies
LucD
Leadership
Leadership

Do you get the same issue on a station that has EN-US as the locale ?

Just trying to find out if this might be related to a language setting.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
leaderone2
Contributor
Contributor

I changed the OS's location and language to Enlish, and reopen the CLI console. the null is still.

I have other vms can get the value, its so weird

0 Kudos
LucD
Leadership
Leadership

Are there any errors in the vpxd logs on the vCenter ?

Or in the vmware.log in the VMs directory ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos