How to remove the UNC module forever for one NT user?

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 “;”

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.


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

Hi Olaf,

We are using local profiles.