Where can I put Powershell modules that will be accessed by multiple users? -
i used variable $env:psmodulepath , provided 2 paths.
> c:\users\my user\documents\windowspowershell\modules > c:\windows\system32\windowspowershell\v1.0\modules\
seems user accessible me. module used multiple person , when uninstalling application [i installing module via msi], if other user uninstalls should removed.
can use "c:\windows\system32\windowspowershell\v1.0\modules\" application related module? or there other better place ?
can use "c:\windows\system32\windowspowershell\v1.0\modules\" application related module?
no. place not noted in section "rules installing modules" of module installation guidelines.
you can decide want put modules shared multiple users.
some options include:
- create new folder in
program files
, , add pathpsmodulepath
. - use network share (though means need change execution policy allow this), @rubanov said.
- use
all users
folder example.