The tentacle is deploying to Windows 2003 R2 service with Powershell v1.0. The Deploy.ps1 script does not have the command ‘try’ in it, but the error message seems to be complaining about it anyway.
I ran tentacle.exe run-script -f deploy.ps1 in the deployed folder and got the same message. I can only assume that some wrapper powershell in the containng powershell host is actually what is failing.
Is this a powershell version issue?
We put a Try around a bootstrap script that we use to call your script, and as you have guessed, we assume PowerShell 2.0 is installed.
For Windows Server 2003 you can get it from here:
Hope that helps,
Thanks Paul. Confirmed. We had only powershell 1.0 on that target.
Manager, Application Delivery | Global Application Delivery | Global Technology & Operations
Russell Investments | Phone: 206-505-1937 | email@example.com:firstname.lastname@example.org | www.russell.comhttp://www.russell.com/
From: Paul Stovell [mailto:email@example.com]
Sent: Tuesday, May 21, 2013 4:53 PM
To: O’Shea, Mike
Subject: Re: Deploy.ps1 fails ‘try’ is not recognized as a cmdlet [Problems #7845]