You'll have to set the execution policy on the remote machine to allow
scripts. Because you are using rsh, you are running scripts on the remote
BTW, I would recommend at least using RemoteSigned and not Unrestricted.
The former will keep any Internet downloaded scripts, which might not get
vetted by you, from being executed.
Microsoft PowerShell MVP
Now Available: WSH and VBScript Core: TFM
Coming Soon: Windows PowerShell: TFM 2nd Ed.
"jefff" <jefff@xxxxxx> wrote in message
> I know this is a strange request, but I need to rsh to start my
> powershell scripts. My scripts work fine locally.
> I have unrestriced access, But when I attempt to rsh the powershell
> they fail. I have even tried signing the scripts but they fails.. This
> system is x64 if
> that matters..
> PS C:\> get-executionpolicy
> PS C:\>
> bash-2.03$ 'rsh' '172.17.226.119' ' cmd /c
> -Command z:\\smebackup_loop.ps1 -Force <c:\\testtools\\yes.txt '
> File Z:\smebackup_loop.ps1 cannot be loaded because the execution of
> disabled on this system. Please see "get-help about_signing" for more
> At line:1 char:23
> + z:\\smebackup_loop.ps1 <<<< -Force