Installation Steps
- Visit Getting Started with the PowerShell Gallery to understand the requirements and setup required for using PowerShellGet. After configuring Windows PowerShell to support installing from the PowerShell Gallery, we are ready to proceed with setup of the Everpure PowerShell SDK.
- Open a Windows PowerShell with Run as Administrator.
- Install the Everpure PowerShell SDK using the
Install-Modulecmdlet. The latest version of the package is installed by default.
Install-Module -Name PureStoragePowerShellSDK
Note:
Please note the name of the module is PureStoragePowerShellSDK.
- Once the above cmdlet is executed, you will see the below warning if the PowerShell Gallery (i.e. PSGallery) has not been setup as a Trusted Repository.
PS C:\> Install-Module -Name PureStoragePowerShellSDK 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"): - Choose [N] No to exit and set the PSGallery repository to Trusted in order to avoid this issue in the future.
PS C:\> Get-PSRepository Name InstallationPolicy SourceLocation ---- ------------------ -------------- PSGallery Untrusted https://www.powershellgallery.com/api/v2/ PS C:\> Set-PSRepository -Name PSGallery -InstallationPolicy Trusted PS C:\> Get-PSRepository Name InstallationPolicy SourceLocation ---- ------------------ -------------- PSGallery Trusted https://www.powershellgallery.com/api/v2/ PS C:\> - Re-run the below command to install. Depending on your connection speed, the download and installation could take a moment. When the installation starts, a Windows PowerShell status notification will display in the session window.
Install-Module -Name PureStoragePowerShellSDK
Note:
If a previous version of the PowerShell SDK has been installed via the PowerShell Gallery, use the cmdlet
Update-Module -Name PureStoragePowerShellSDK to get the latest version.