title: How to permanently remove a UNC path from $env:PSModulePath for PowerShell?
body: <p>Where I work, users have their folders redirected to a UNC path to save data. This seems to have affected my PowerShell because every time I start up powershell, it attempts to load modules from the UNC path and it takes a long time. This also affects how I use cmdlets because it tries to search the UNC path for cmdlet context. </p>
  
  <p>When I look at the output of <code>$env:PSModulePath</code> I can see the UNC directory. But it doesn't show up in System's Environment Variables dialog editor. </p>
  
  <p>How can I get rid of this so that Powershell doesn't keep looking for module support from the UNC directory? I understand that I can edit an existing sessions $env:PSModulePath, but I want it gone forever.</p>