Author Posts

February 22, 2017 at 5:42 am

Dear PS pro:

I have a question about PS module path. When I get the PSModulePath on my server, it will show as below, with an UNC path. I want to remove the UNC path forever because the yellow search process bar will be triggered automatically when I run my cmdlet on the console. Is this possible?

Here is my cmdlet and result:
PS C:\Users\ben> $env:PSModulePath -split ";"

\\FileServer\NTAccount$\Documents\WindowsPowerShell\Modules
C:\Users\ben\Documents\WindowsPowerShell\Modules
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
C:\Program Files\Citrix\XenDesktopPoshSdk\Module\Citrix.XenDesktop.Adm
C:\Program Files\Microsoft SQL Server\110\Tools\PowerShell\Modules\

I have checked the Environment Variables, I did not find the UNC path in the value of PSModulePath Variable.

Thanks,
BenJ

February 22, 2017 at 7:34 am

Do you use folder redirection of your documents folder or roaming profiles?

February 22, 2017 at 8:19 am

Hi Olaf,

We are using local profiles.

Thanks,
Ben