UNC path over PSSession RRS feed

  • Question

  • Hi All,

    I have an unsigned script on a network share, that i would like to run over a PSSession on another workstation.  I've set the execution policy to Unrestricted on the remote station, and I've confirmed that the share is assessable by the remote station.

    I've set and entered a new PSsession, and tried to run the script straight off the UNC path, but i get...

    The term '\\*path*\share\Repo\*script*.ps1' is not recognized as the name of a cmdlet, function,
    script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is co
    rrect and try again.

    Do I need to map a drive to run scripts off remote shares?


     - Kip

    Friday, January 27, 2012 9:26 PM


All replies