Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
Current Version: 1.5
Clustered Data ONTAP (also known as ONTAP) uses self-signed certificates by default for management
of the environment. These certificates have a typical expiration date of 1 year (365 days).
This KB describes the process to recreate the certificates:
This script handles the steps outlined in the article by doing the following:
Article link updated by Admin on Sept 29, 2020.
You can prompt the user for their credentials at the start of the script then use the credential object to pass to cmdlets. I use this technique often. Your cmdlet needs to support a credential parameter though.
#Store credentials if needed
if (!($Creds)){Set-Variable -Name Creds -Value (Get-Credential -credential "$env:userdomain\$env:username") -Scope Global -Visibility Public -Option AllScope}
Excellent - thank you for the suggestion!
@dgwhitecalgary wrote:
You can prompt the user for their credentials at the start of the script then use the credential object to pass to cmdlets. I use this technique often. Your cmdlet needs to support a credential parameter though.
#Store credentials if needed
if (!($Creds)){Set-Variable -Name Creds -Value (Get-Credential -credential "$env:userdomain\$env:username") -Scope Global -Visibility Public -Option AllScope}
I can't edit this original post anymore, but the updated link to the relevant KB article is here:
The new iteration of the script can now be found here:
https://www.powershellgallery.com/packages/NetAppSSLCertificateRenew