I don't see how to add a module
Forum rules
DO NOT POST LICENSE NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- DenverDenver
- Posts: 21
- Last visit: Wed Oct 25, 2023 11:23 am
I don't see how to add a module
I must be blind but I don't see options to add modules to profiles. -using the download demo, maybe it's not available in there? My goal is to auto-load the SCCM module. I realize I can modify my profile.ps1 but I guess I expect that's what this tool will help me do?
Re: I don't see how to add a module
This feature is currently not available, but we will look into adding this.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- DenverDenver
- Posts: 21
- Last visit: Wed Oct 25, 2023 11:23 am
Re: I don't see how to add a module
You might want to change your advertising for the product, eh?
"Install, remove or temporarily disable modules."
"Install, remove or temporarily disable modules."
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: I don't see how to add a module
Thank you so much for your suggestion. The 'advertising' says nothing about profiles, so I don't think any change is warranted.
The term 'install' generally is agreed upon meaning to copy relevant files to a computer's hard drive, so that is what it does.
'Remove' is meant to imply "uninstall", which kind of makes sense, right? And 'temporarily disable' means to put the module where PowerShell won't load it.
None of this has anything to do with any profiles.
Now, I am certain our team will look at your suggestion and see what can be done about adding and removing this from profiles.
But as you probably know, PowerShell does load modules on demand when a cmdlet from an installed module is used, so there is no actual need to explicitly import a module in a profile. It might help clarity or performance, but it is not usually necessary.
Maybe you could elaborate on why you would want ModuleManager to add your modules to a profile?
The term 'install' generally is agreed upon meaning to copy relevant files to a computer's hard drive, so that is what it does.
'Remove' is meant to imply "uninstall", which kind of makes sense, right? And 'temporarily disable' means to put the module where PowerShell won't load it.
None of this has anything to do with any profiles.
Now, I am certain our team will look at your suggestion and see what can be done about adding and removing this from profiles.
But as you probably know, PowerShell does load modules on demand when a cmdlet from an installed module is used, so there is no actual need to explicitly import a module in a profile. It might help clarity or performance, but it is not usually necessary.
Maybe you could elaborate on why you would want ModuleManager to add your modules to a profile?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- DenverDenver
- Posts: 21
- Last visit: Wed Oct 25, 2023 11:23 am
Re: I don't see how to add a module
What would I be copying? How do I copy?The term 'install' generally is agreed upon meaning to copy relevant files to a computer's hard drive, so that is what it does.
OK, How do I install modules? It's a module manager
Goal is to persistently load and maintain modules. kinda what I would expect "module manager" to do.
Bullet point 2 on your advertising:
"Install, remove or temporarily disable modules."
What part of install module am I missing?
https://www.sapien.com/assets/pdf/Power ... anager.pdf
Not trying to be difficult, just thinking that's what this is for, right? When I get this list of modules in MM when it fires up, where did the list come from? how do those modules get in there in the first place? They are not listed in any of my profile files.
Re: I don't see how to add a module
You are not directly copying anything. When a module is installed, the correct files for the module are 'copied' to your machine from a registered repository.
To install a module, you open the Repository Search dialog (Home->Repository).
Search for the module you want to install and when you have found it, right-click and select Install or select the green download arrow:
The list you see when you start ModuleManager is generated from the cmdlet:
This shows all modules installed on your machine. Some of the modules might have been installed via other programs and some are system modules that are installed by default for PowerShell.
To install a module, you open the Repository Search dialog (Home->Repository).
Search for the module you want to install and when you have found it, right-click and select Install or select the green download arrow:
The list you see when you start ModuleManager is generated from the cmdlet:
- Get-Module -listavailable
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- DenverDenver
- Posts: 21
- Last visit: Wed Oct 25, 2023 11:23 am
Re: I don't see how to add a module
Yes! (I think) that's what I'm looking for..I'll give it a try asap
- DenverDenver
- Posts: 21
- Last visit: Wed Oct 25, 2023 11:23 am
Re: I don't see how to add a module
So if I understand, it's less "installing" as "enabling installed"
Here's my issue: I have the SCCM client installed on my machine. That puts the SCCM module on the machine as well here:
C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager\ConfigurationManager.psd1
I copied that ConfigurationManager.psd1 to alllll te places I can find to make it available like:
C:\Program Files\WindowsPowerShell\Modules\ConfigurationManager\ConfigurationManager.psd1
or
C:\Users\DenverDenver\Documents\WindowsPowershell\Modules\ConfigurationManager\ConfigurationManager.psd1
But... I never see it when I run Get-Module -listavailable
I downloaded this tool (I also own the primal suite) to see if it could help me... am I close? I don't see it when I run repo search
Thanks so much!!
Here's my issue: I have the SCCM client installed on my machine. That puts the SCCM module on the machine as well here:
C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager\ConfigurationManager.psd1
I copied that ConfigurationManager.psd1 to alllll te places I can find to make it available like:
C:\Program Files\WindowsPowerShell\Modules\ConfigurationManager\ConfigurationManager.psd1
or
C:\Users\DenverDenver\Documents\WindowsPowershell\Modules\ConfigurationManager\ConfigurationManager.psd1
But... I never see it when I run Get-Module -listavailable
I downloaded this tool (I also own the primal suite) to see if it could help me... am I close? I don't see it when I run repo search
Thanks so much!!
Re: I don't see how to add a module
Its strange that it isn't being recognized. Try modifying the PSModulePath environment variable to include the original folder of the module. The PSModulePath environment variable stores the paths to the locations of the modules that are installed on disk.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- DenverDenver
- Posts: 21
- Last visit: Wed Oct 25, 2023 11:23 am
Re: I don't see how to add a module
Nope :/
Wish I had a better idea how the application is getting the list it has....
SQLServer is in there.. not sure where is came from but I think it must have installed with SSMS
The module I want is loading as part of my profile now -but it's not listed
BUT what is NOT in there: Active Directory module... but I use it all the time.
I'm not sure if "respositories" can include local module stores...
Wish I had a better idea how the application is getting the list it has....
SQLServer is in there.. not sure where is came from but I think it must have installed with SSMS
The module I want is loading as part of my profile now -but it's not listed
BUT what is NOT in there: Active Directory module... but I use it all the time.
I'm not sure if "respositories" can include local module stores...