Let's invoke the following command (where \\MyMachine is the existing
network name):
0> Set-Location \\MyMachine
Set-Location : Command execution stopped because the shell variable
"ErrorActionPreference" is set to Stop: The UNC path should be of the form
\\server\share.
At line:1 char:13
+ Set-Location <<<< \\MyMachine
So far so good, the error says the command is not good. But it looks like
the current location is not quite valid after that and we cannot invoke
Get-ChildItem, for instance:
0> Get-ChildItem
Get-ChildItem : Cannot process argument because the value of argument "path"
is invalid. Change the value of the "path" argument and run the operation
again.
At line:1 char:13
+ Get-ChildItem <<<<
The current location seems to be incomplete:
0> Get-Location
Path
----
Microsoft.PowerShell.Core\FileSystem::
Can you reproduce this? Is this a bug or am I missing something? I use
PowerShell v1, is this the same in CTP v2?
--
Thanks,
Roman Kuzmin
http://code.google.com/p/farnet/
PowerShell and .NET in Far Manager


