- Community Home
- >
- Storage
- >
- Midrange and Enterprise Storage
- >
- HPE 3PAR StoreServ Storage
- >
- Automatic import of HPE 3PAR PowerShell Toolkit mo...
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
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
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
тАО02-07-2019 08:17 AM
тАО02-07-2019 08:17 AM
Automatic import of HPE 3PAR PowerShell Toolkit modules?
First, I admit to being a Power Shell newb. I've downloaded the new 3PAR toolkit. I copied the HPE3PARPSToolkit folder into my PSModulePath, %UserProfile%\Documents\WindowsPowerShell\Modules, so I now have the .psm1 files in %UserProfile%\Documents\WindowsPowerShell\Modules\HPE3PARPSToolkit.
Get-Module -ListAvailable shows my system Modules directory and the modules within. It doesn't show my personal Modules folder nor the 3PAR .psm1 files.
While I can manually import the 3PAR modules explicitly entering the path, I'd like to have the 3PAR modules automatically available whenever I start PS.
What am I doing wrong?
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2019 10:26 PM
тАО02-07-2019 10:26 PM
Re: Automatic import of HPE 3PAR PowerShell Toolkit modules?
I have the same problem. The older version works like expected. The install guide of the older version includes "Copy the files to <psmodule-path>". This part is missing in the new version, but even when you do it, it does not work. I tried the "old" system wide path in system32, the new one in program files, and the personal one. And the manual import takes too long to include a "import-module ..." in every script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2019 06:16 AM
тАО02-12-2019 06:16 AM
Re: Automatic import of HPE 3PAR PowerShell Toolkit modules?
A "well-formed" module is a module that is stored in a directory that has the same name as the base name of at least one file in the module directory. If a module is not well-formed, Windows PowerShell does not recognize it as a module.
The "base name" of a file is the name without the file name extension. In a well-formed module, the name of the directory that contains the module files must match the base name of at least one file in the module.
https://docs.microsoft.com/en-us/powershell/developer/module/installing-a-powershell-module
I also had to right click the .psm1 files, go to Properties, and check the "unblock" since these files were downloaded from teh evil internets.