- Community Home
- >
- Storage
- >
- HPE Nimble Storage
- >
- Application Integration
- >
- Nimble PowerShell Toolkit now posted to the Micros...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2019 06:07 PM
05-29-2019 06:07 PM
Nimble PowerShell Toolkit now posted to the Microsoft PSGallery
So when writing a new PowerShell Module, you should consider how people are going to download it. Commonly these PowerShell modules have been tucked away behind vendor support websites that require logon, and while this method is usable, it doesn’t lend itself to supporting automation.
This is the brave new world, and in this new world, we expect servers to configure themselves, and if your like me you sure as heck don’t want to embed your username and password to a vendor site in your scripts especially if that site is for Infosight.hpe.com.
Of course the answer to this question is PS Gallery, which is a website similar to GitHub that hosts PowerShell Modules. Below I outline the steps to allow a Windows Server to obtain modules directly from the PS Gallery.
The first step is to download the per-requisites such as NuGet and PowerShellGet; Make sure to use an Administrator PowerShell Window for the following steps.
PS:> Install-PackageProvider -name NuGet -force
Name Version Source Summary
---- ------- ------ -------
nuget 2.8.5.208 https://onege… NuGet provider for the...
Additionally you will need to download a newer version of the PowerShellGet module;
PS:> update-module -name powershellget -force
And by default Microsoft does not trust even its own sites, you must tell your server to allow itself to download from the PS Gallery.
PS:> Set-PSRepository -name PSGallery -InstallationPolicy Trusted
Once these per-requisites have been done, you can download any of the Modules, but we don’t want ANY old module, we want the HPE Nimble Storage Module. The easiest way to find the module is to use the find command as follows; Note that I am lazy, so I use ‘*’ wildcards when I can.
PS C:\Windows\system32> Find-Module hpe*
Version Name
------- ----
1.1.0.0 HPERedfishCmdlets
1.2.0.0 HPESysInfoCmdlets
2.2.0.0 HPEiLOCmdlets
1.0.0.1 HPESmartArrayCmdlets
2.0.0.0 HPENVDIMMCmdlets
1.2.14.0 HPESvtCmdlets
1.1.0.0 HPEMigrationAdvisoryTool
2.2.0.0 HPEBIOSCmdlets
2.0.0.0 HPEOACmdlets
1.0.0.0 HPEVCCmdlets
3.0.0 HPENimblePowerShellToolkit
1.0.0.1 HPEOSProvisionCmdlets
1.2 hpeonesphere
Of course we only need one module, and as long as our query only returns a single module, we can pipe that directly to the Install-Module commands.
Special note here, you must explicitly accept the license or you will not be able to download the module.
PS:> Find-Module HPENi* | Install-Module -AcceptLicense
PS:> Import-Module HPENimblePowerShellToolkit
Chris Lionetti.
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
