Yann Shukor
asked on
Convert PowerShell 2.0 script to run on PS 1.0 server
Hi
I wrote a script for a client last year based on the 2.0 version syntax
The existing windows 2003 servers were running Powershell 1.0
but they had been scheduled for an upgrade to PS 2.0
Apparently they have decided that the upgrade won't happen anytime
soon i.e. not in the next couple of years.
Is it possible to downgrade/convert my script so that is can run
in a PS 1.0 environment ?
Is it just a case of'debugging the code in order to replace certain
commands, or syntaxes ?
thanks in advance for your insight
yann
commans
I wrote a script for a client last year based on the 2.0 version syntax
The existing windows 2003 servers were running Powershell 1.0
but they had been scheduled for an upgrade to PS 2.0
Apparently they have decided that the upgrade won't happen anytime
soon i.e. not in the next couple of years.
Is it possible to downgrade/convert my script so that is can run
in a PS 1.0 environment ?
Is it just a case of'debugging the code in order to replace certain
commands, or syntaxes ?
thanks in advance for your insight
yann
commans
ASKER
Thanks for your reply
I did indeed state PS 2.0, as well as indicate how to upgrade their PS 1.0 servers
I have come to the same conclusion although, I'm no PS expert.
I learnt PS on the go while developping this script.
There are in fact two scripts, one to prepare and transmit, and the other to receive and deploy. This issue concerns the second script.
Regards
yann
I did indeed state PS 2.0, as well as indicate how to upgrade their PS 1.0 servers
I have come to the same conclusion although, I'm no PS expert.
I learnt PS on the go while developping this script.
There are in fact two scripts, one to prepare and transmit, and the other to receive and deploy. This issue concerns the second script.
Regards
yann
I have to agree to what ve3ofa said. And there is absolutely no reason why they are not installing PS2, so they need to learn by paying money for downgrading.
But since there aren't that much fundamental changes between 1.1 and 2.0, checking and converting the scripts should be easy - a "compile and see" kind of work. You do not have Remoting, and some cmdlets are missing, so you need to use more .Net types and methods.
But since there aren't that much fundamental changes between 1.1 and 2.0, checking and converting the scripts should be easy - a "compile and see" kind of work. You do not have Remoting, and some cmdlets are missing, so you need to use more .Net types and methods.
ASKER
Thanks Qlemo
Last I heard, well after receiving my quote, they have decided
to attempt an upgrade on one of their 2003 servers to see how
things turn out i.e. in terms of disrupting the other production
apps in place.
cheers
yann
Last I heard, well after receiving my quote, they have decided
to attempt an upgrade on one of their 2003 servers to see how
things turn out i.e. in terms of disrupting the other production
apps in place.
cheers
yann
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I always make sure that all of the details are specified in the contract for services, like programming the devil is always in the details