Hello,
I am trying to upgrade the NetApp PowerShell Toolkit from version 9.7.1 to 9.9.1, and I am finding it to be mind-numbingly confusing. First, I extracted the zip file to the download folder and tried running install.ps1 as described in the Installation Guide on page 7. I got the following error:
-----------------------------------------------------------------------------------------------
Suggestion [3,General]: The command install.ps1 was not found, but does exist in the current location. PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\install.ps1". See "get-help about_Command_Precedence" for more details.
-----------------------------------------------------------------------------------------------
I tried the recommended syntax of .\install.ps1 and got this:
-----------------------------------------------------------------------------------------------
.\install.ps1: File C:\Users\!tthomas1\Downloads\NetApp.ONTAP\Install.ps1 cannot be loaded. A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file..
-----------------------------------------------------------------------------------------------
Since that wasn't working, I manually exported the zip file to the appropriate Program Files location and ran this command:
Import-Module "C:\Program Files\WindowsPowerShell\Modules\netapp_ontap\NetApp.ONTAP\NetApp.ONTAP.psd1"
It results in the following error. Note I am running as admin.
-----------------------------------------------------------------------------------------------
Import-Module: The following error occurred while loading the extended type data file:, C:\Program Files\WindowsPowerShell\Modules\netapp_ontap\NetApp.ONTAP\DataONTAP.Type.ps1xml: The file was skipped because of the following validation exception: File C:\Program Files\WindowsPowerShell\Modules\netapp_ontap\NetApp.ONTAP\Data
ONTAP.Type.ps1xml cannot be loaded. A required certificate is not within its validity period when verifying against the
current system clock or the timestamp in the signed file...
-----------------------------------------------------------------------------------------------
I then abandoned the installation guide and went to the following post:
https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-9-9-1-2106-released/m-p/167519
I tried the Install-Module command and got the following. After entering "Y", nothing happened.
-----------------------------------------------------------------------------------------------
PS C:\Users\!tthomas1\Downloads\NetApp.ONTAP> install-module NetApp.ONTAP
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y
-----------------------------------------------------------------------------------------------
The last release I installed was an extremely simple executable. This is frustrating to say the least. Can someone assist?