Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Viewing all articles
Browse latest Browse all 16717

Unable to get Folder Name using Get-View

$
0
0

Hi,

 

I am unable to get the Folder Name using the below script using the Get-View.

 

Please help.

 

Script

Get-View -ViewType VirtualMachine -Property Name,Guest |

Select @{N='vCenter';E={([uri]$_.Client.ServiceUrl).Host}},

@{N='Folder';E={$._ExtensionData.MoRef.Value}},

Name,@{N='ToolsStatus';E={$_.Guest.ToolsStatus}},

    @{N='ToolsType';E={$_.Guest.ToolsInstallType}},

    @{N='ToolsVersion';E={$_.Guest.ToolsVersion}},

    @{N='ToolsRunningStatus';E={$_.Guest.ToolsRunningStatus}} |

Sort-Object -Property Name | ft -auto


Viewing all articles
Browse latest Browse all 16717

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>