UNC paths with remote PowerShell

Attempting to use UNC paths during a remote PS session will fail due to the way credentials are stripped away for security reasons with powershell. Luckily there is a really simple solution. CredSSP.

Note that to use this you must enable credssp here's how:

On the client machine:

Make sure to set your domain correctly

On the servers you wish to connect too:

Keep in mind for this to work you must use the -Credential parameter. For more details check out this TechNet link: http://blogs.technet.com/b/heyscriptingguy/archive/2012/11/14/enable-powershell-quot-second-hop-quot-functionality-with-credssp.aspx.

0 comments… add one

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.