I am attempting to run the following simple PowerCLI script to collect host logs.
$esx = Get-VMHost myhost
$log = Get-Log -Key “vmkernel” -VMhost $esx
$log.entries > c:\logs.txt
When I run the script an error message is generated.
It reports that the Connect-VIServer command is not recognized as the name of a cmdlet.
Any ideas why this error message in being presented.