When I run the attached PS file, I receive:
The first line in the PS file was changed to
Get-VIServer -Server omac-inesx01 The root user was used.
omac-inesx01 443
Get-View : Permission to perform this operation was denied.
At C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\ESX-patch-report.
ps1:10 char:27
+ $pm = Get-View (Get-View <<<< (Get-VMHost -Name $_.Name).ID).configManager
.patchManager
You cannot call a method on a null-valued expression.
At C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\ESX-patch-report.
ps1:14 char:37
+ $taskImpl = $pm.ScanHostPatch_Task( <<<< $repository,"*")
Get-View : Cannot bind argument to parameter 'MoRef' because it is null.
At C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\ESX-patch-report.
ps1:17 char:19
+ $task = Get-View <<<< $taskImpl
Server : omac-inesx01.intranet.hdr
Applicable :
Installed :
Integrity :
Restart :
VM off req :
Prequisites: