views:

6

answers:

1

Running the following powershell command

invoke-computer -computer computer -scriptblock{remove-item -force \\otherpc\backup_dump\TEST\*}

I receive the error

An object at the specified path \otherpc\backup_dump\TEST\ does not exist.

But when I run it locally it works, I suspect there is something to do with scope here but I'm not sure of that, any help would be great.

A: 

Could you use the local path (C:\otherpc\backup_dump\TEST*) instead of the UNC path?

Scott A. Lawrence