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