would like to get the output from the esxcli command at a PowerCLI prompt
From powerShell Prompts
connect-viserver ESXi1
Get-VMHost
$esxcli = Get-EsxCli -v2
$esxcli.system.wbem.get
That's about what I have right now....
Once I figure this out.... remote ping of splunk servers...
Thank you....
Try like this
$esxName = 'MyEsx'
$esx = Get-VMHost -Name $esxName
$esxcli = Get-EsxCli -VMHost $esx -v2
$esxcli.system.wbem.get.Invoke()
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try like this
$esxName = 'MyEsx'
$esx = Get-VMHost -Name $esxName
$esxcli = Get-EsxCli -VMHost $esx -v2
$esxcli.system.wbem.get.Invoke()
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference