Hello
Quite new to PowerShell on Windows 10 and I'm finding an issue with PSModulePath being set to a network share which I do not want as it takes
an age to load. Strangely the speed issue only manifests itself when I run PS commands in Visual Studio code (preferred option) but not in ISE.
I have tried the following to re-order the search list but it only persists for that session.
$Env:PSModulePath = "C:\Program Files\WindowsPowerShell\Modules;\\domain.com\fileshare\redirected$\first.last\Documents\WindowsPowerShell\Modules;C:\Program Files (x86)\Red Gate\SQL Change Automation PowerShell\Modules\;C:\Program Files (x86)\Microsoft Azure Information Protection\Powershell"
But it is not persisted.
My $PROFILE looks like this.

I know I need to read up on PS profiles but wanted to get this path stuff sorted first.
Thanks in advanced.
