Jump to content


Photo

Get XenServer patches with PowerShell

Started by Thomas Subotitsch , 20 April 2017 - 11:09 PM

Thomas Subotitsch Members

Thomas Subotitsch
  • 11 posts

Posted 20 April 2017 - 11:09 PM

Hi.

Did you dream about fetching the latest patches automaticly?

Due the fact that the latest XenCenter, XenServer, XenServerPatches are available via

 

http://updates.xensource.com/XenServer/updates.xml

 

it's only a matter of a few lines of parsing these information.

 

So here are the ways to retrieve it.

 

.EXAMPLE

Get-XenServerPatch -XenCenter
Lists the latest version of XenCenter (downwards compatible)

.EXAMPLE
Get-XenServerPatch -XenServer
List the latest version of XenServer with download link

.EXAMPLE
Get-XenServerPatch -XenServerPatch "7.1"
List the latest version of XenServer with download link

.EXAMPLE
Get-XenServerPatch -XenServerPatch "7.1" -DownloadPath "C:\XenServerPatches"
Fetches the available patches for XenServer 7.1 into the given path (skips if patch already exists)

 

Corrections, hints, improvements are welcome.

 

Greetings,

Thomas

Attached Files