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

This topic contains 3 replies, has 3 voices, and was last updated by  Curtis Smith 5 months, 3 weeks ago.

  • Author
    Posts
  • #64983

    BenJia
    Participant

    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

  • #64986

    Olaf Soyk
    Participant

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

    • #64999

      BenJia
      Participant

      Hi Olaf,

      We are using local profiles.

      Thanks,
      Ben

  • #65079

    Curtis Smith
    Participant

You must be logged in to reply to this topic.