Set-CitrixPSVersion.ps1 (Powershell)

Added by Brandon Shell , last edited by Brandon Shell on May 11, 2008  (view change)
Tags: 

Sets the MPS Edition Version on a Server, List of Servers, or All Servers in the Farm.

www.bsonposh.com

Description

Sets the MPS Edition Version on a Server, List of Servers, or All Servers in the Farm. It can used to view the PS Version by using the -show flag. It has detailed help that can be viewed by passing -help.

www.bsonposh.com

Download

Set-CitrixPSVersion.ps1

Code Snippet

Write-Host
Write-Host " Set-CitrixPSVersion.ps1:" -fore Green
Write-Host "   Sets PS Version on a Server, List of Servers, or all Servers in the Farm"
Write-Host
Write-Host " Parameters:" -fore Green
Write-Host "   -File <FileName>       : Optional. Name of the File of Servers"
Write-Host "   -Server <ServerName>   : Optional. Name of the Server to Change"
Write-Host "   -Verbose               : Optional. Enables Verbose Output"
Write-Host "   -All                   : Optional. Sets Version on all Servers [Requires -Server]"
Write-Host "   -Show                  : Optional. Displays the Version for Server(s)"
Write-Host "   -Help                  : Optional. Displays This"
Write-Host "   -Whatif                : Optional. Will not Commit Info just Display what would change"
Write-Host
Write-Host " Examples:" -fore Green
Write-Host "   Set PS Version on Server1 to STD" -fore White
Write-Host "     .\Set-CitrixPSVersion.ps1 -Server Server1 -psver STD " -fore Yellow
Write-Host
Write-Host "   Set PS Version on Servers in a File" -fore White
Write-Host "     .\Set-CitrixPSVersion.ps1 -file c:\Mylist.txt -psver STD " -fore Yellow
Write-Host
Write-Host "   Get PS Version from ALL server" -fore White
Write-Host "     .\Set-CitrixPSVersion.ps1 -all -Server myzdcserver" -fore Yellow
Write-Host
Write-Host " Product Edition Options" -fore Green
Write-Host "   STD = Citrix Presentation Server Standard Edition" -fore White
Write-Host "   ADV = Citrix Presentation Server Advanced Edition" -fore White
Write-Host "   ENT = Citrix Presentation Server Enterprise Edition" -fore White
Write-Host "   PLT = Citrix Presentation Server Platinum Edition" -fore White
Write-Host

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.

  • Add to Bookmarks