I downloaded the module from PowershellGallery (stating “This module has no dependencies”) and stored it in a certain directory (for distribuition purposes - In the following example: c:\PSModules).
In my test I imported the module in an elevated ISE:
You understood it correctly. But what is the advantage of placing your module to C:\PSModules? And do you regularily install software to other folders than program files or program files (x86)? Or do you force installations to place shared DLLs to folders in the root of your C: drive instead of the folder system32?
How big is this module? Do you have to deploy it more than once per computer? If you have a software deployment solution in place it should take only seconds to copy the module folder to the proper directory. And in your script you use the #requires statement to prevent the script from running if the module is not available.
If you’re talking about the user specific module paths you’re right. But there are computer specific module paths as well. And these are all the same for all users. The default for Windows PowerShell would be C:\Program Files\WindowsPowerShell\Modules.
I don’t have any experience with this particular module. But if I had to use it I’d try to keep everything as generic as possible to avoid any possible problem.