Apr 09 2021 01:19 AM - edited Apr 09 2021 01:51 AM
My new Powershell module did have a load time of several seconds. Using this in a production environment is not an option with this long load time.
Is it possible to add this module to the "core" of powershell. So that it is already loaded before I start a new powershell session?
King regards,
Hans.Harms@centric.eu
Apr 21 2021 12:58 AM
Apr 26 2021 08:11 PM
Apr 27 2021 03:12 AM - edited Apr 27 2021 03:13 AM
Hi
There is a Post I wrote about how to use a command from a module when there is a similar command in another module
check it from here
https://www.powershellcenter.com/2020/12/01/get-vm-conflict-between-hyper-v-ps-and-powercli/
but in a summary, you will need to call the module name\the command.
Loading PowerShell module will sure take time, if you have something related to RDS and its must be loaded, then you need to make sure that the command are loading in async mode, not sync..
Apr 27 2021 02:26 PM
Apr 28 2021 12:46 AM
Apr 28 2021 12:56 PM