Programatically Set Presentation Server 4.5 Edition

Added by Vishal Ganeriwala , last edited by Vishal Ganeriwala on Mar 21, 2008  (view change)
Tags: 

Simple script to change the Presentation Server 4.5 Edition

Description

Script Author:Christian Gehring

For server deployments, IT stuff can save effort in using automated deployment mechanism. To set the proper edition after upgrading to Citrix Presentation Server 4.5 platinum you have to set the edition on each server using the Access Management Console or you can use the SetCPSEditon.vbs script.
The MFCOM Winserver5 Interface provides a method called MPSEdition() where you can read and write the editions for each defined server. After writing this parameter it is recommended to reboot your server.

To display all current editions within your entire farm you can use the following syntax in a command shell:
cscript SetCPSEditon.vbs display
The scripts creates a log file called c:\logfile.txt where all server and editions displayed.
To set an edition to an individual server type:
cscript SetCPSEdition.vbs <servername> <edition>
Where servername is the name of the server and edition the CPS edition

Product Edition Description
STD Citrix Presentation Server Standard Edition
ADV Citrix Presentation Server Advanced Edition
ENT Citrix Presentation Server Enterprise Edition
PLT Citrix Presentation Server Platinum Edition

To change all servers in the entire farm we added an 'all' option to the script.
cscript SetCPSEdition.vbs all <edition>
Note:
After you have changed the edition you have to reboot your server.

Download

SetCPSEdition.vbs

User Rating?

Disclaimer

These software applications are provided to you as is with no representations, warranties or conditions of any kind. You may use and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the software application may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the software application fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the software application. In no event should the code be used to support of ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SOFTWARE APPLICATION, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the code.

When you right click on the Server you have several options:

1. Set Metaframe Edition - where you can select via a radio option: STD, ADV, ENT, PLT

2. Set Metaframe Version - this sets the "Product Version"

Does this script change both?

Also, we are on PS4.0 not PS4.5 but want to know if this script is designed for and will work  to change the "Set Metaframe Edition" value to PLT. We are upgrading our PS40 HFRU2 servers to HFRU4. We have seen that the HFRU4 upgrade adds an additional radio button for the new PLT option, but it does not change it to PLT. We need to programatically change this on over 300 servers.

/paul 




Great script! One minor detail: the script adds the edition in lowercase to the CMC!

After rebooting, the server did not recognize the edition in lowercase . In my situation I changed the edition to PLT, but the server did not recognize it because ot was added as plt. I replaced 'lcase' for 'ucase' in the script and it worked fine.

 Roy

Hi Roy
Thanks for pointing this out. I will change the script to have PLT in upper case.
Do you have any other suggestions or feedback for CDN site in general.
Thanks
Vishal Ganeriwala

Hi

When I try this on my CPS it say's: "The server threw an exeption"

My root is M: so I changed that in the script for the logfil output.

Please help, I can't change my CPS edition because I get an error in the CMC console when it try to discover the Presentation Server.

/Fredrik

Posted by Anonymous at Apr 23, 2008 04:46 | Reply To This
  • Add to Bookmarks