Hi Experts ,
I was trying to script the process of EMC PowerPath license check for all the ESXi servers in our environment.
The PowerPath is installed but in some servers it is not registered.The installation path is like this
/opt/emc/powerpath/bin/powermt check_registration
So i want to redirect the output to a file or just the word "unlicensed" with respect to that host.
$VMHosts = Get-VMHost
$VICreds = Get-VICredentialStoreItem -File D:RootCreds.xlsx
$LicenseChk = & '/opt/emc/powerpath/bin/powermt check_registration' host=$($VMHost.name) username=$($VICreds.User) password=$($VICreds.Password)
I tried to script in this way but it is failing with below errors.
If anyone has better suggestions than this way please advice.
Thanks in Advance.
Regards
Sourav