Need script for proactive expiration of certificate for multiple Vcenters. We have 200 vcenters in our environment . We need a script that must check the pro active status of the certificate expiration
With PowerCLI 13.1 you can use the Get-VIMachineCertificate cmdlet.
Connect to the vCenter for which you want to check the expiration date, then do
Get-VIMachineCertificate -VCenterOnly | Select Entity,NotValidAfter
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
We have 200 vcenters in our environment . we need to a run only one script that should tell the expiration of all VCs
Then you use a loop through all vCenters.
How would you provide the credentials to connect to each of these vCenters?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Script should automatically needs to connect all the Vcenters
That can be done with pass-through authentication (SSO based) or with the use of a CLIXML file (Export-CliXMl)?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
we need more information here to configure in our environment
And I need more information to be able to help you.
What does not work?
Any error messages?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference