PS map network drive RRS feed

  • Question

  • I have create file.ps1 (Map shared folder as network drive) having content.

    New-PSDrive –Name "F" -PSProvider FileSystem -Root "\\adm\DRAFT" -Persist

    This is for users when they connect via VPN from remote location to map their network drive by running PS script on their desktop

    when I run the script there is an error message

    New-PSDrive : A parameter cannot be found that matches parameter name 'Persist'.
    At line:1 char:103

    Muhammad Mehdi

    Tuesday, January 23, 2018 5:01 AM


  • The version of PS is too old for the Persist parameter.  Upgrade PS to the latest version.


    • Marked as answer by MM from AUS Tuesday, January 23, 2018 5:47 AM
    Tuesday, January 23, 2018 5:09 AM