How do I change my location to a network share in PowerShell?

204 Views Asked by At

I want to be able to set my location to a network share in the PowerShell command window. I had thought that doing something like \\SERVERNAME\SHARE_NAME would do the trick, but it doesn't. So how do I do it?

1

There are 1 best solutions below

1
On BEST ANSWER
Set-Location //server/share

Or, using the alias cd

cd //server/share

Note: you may also use Set-LocationEx in place of Set-Location.