How to Use PSModulePath as an Automation Module?

In order to get automation module importing working, the file system path must be added to the  PSModulePath  value in the  HKLM:\Software\Microsoft\Control\Session Manager\Environment  registry key. I have a few places where I have modules kept and I kept have to go into the registry value and manually change it to add my new directory. No more! I must do this automagically so I created a tiny module made up of 3 functions; Get-PSModulePath  Get-PSModulePath ,  Remove-PSModulePath  and Add-PSModulePath . I bet you can guess what they all do.

If you’d like to save a few minutes a year, feel free to download and import this module called PSModulePath in my Github repo.