Hi to all,
I have wrote a simple script in powershell that interact with Configuration manager.
Every time the support personal run the script, the import-module configurationmanager are loaded and takes about 10 seconds.
Is there a way to make sure the module is already loaded and save this 10 seconds.
Thank you very much
Amir ![]()
Amir,
Welcome to the forum. ![]()
Well … since you do not share any code or some more information about how your script is used …
… It depends … ![]()
First of all - how often or how frequently do they have to use your script? Does it really matter if it takes 10 seconds? If yes … How do these support personal work? Will they have an open PowerShell session and only call your script? Or will they launch a new PowerShell instance with your script? Do they have the Configuration Manager module installed locally or do they load it remotely from the server?
These questions are not meant to be answered by you. They are food for thought!!
![]()