Perform WSUS Installation using PowerShell

In the last couple of weeks I’ve been working a lot with Citrix Lifecycle Management. I’m happy to see that more and more blueprints are getting shared by Citrix, vendors and the community.

The only thing I’m missing is for Community people like myself to share scripts and blueprints in Citrix Lifecycle Management. Until then, here we go!

Update 10/10/2015: I’m the first private person authorized to publish Blueprints to the Community Catalog. Now you don’t need to add my custom script, just add my Blueprint from the Catalog and the WSUS Server will install and configure itfself.

CLM xenappblog

When you deploy a PoC you most certainly have a WSUS server in your Datacenter that you can leverage, but what if you want to setup a completly isolated PoC environment? What if you want to run it in Amazon or Azure without a VPN connection to your Datacenter?

How are you going to run a proper LoginVSI test without the Recommended Hotfixes for XenApp 7.x and Available Updates for Remote Desktop Services in Windows Server 2012 R2?

The following script is ripped out of my Automation Framework which does install and configure WSUS automatically as part of my Framework.

The nice thing is that you can use it anywhere you want, as standalone or integrated in any kind of OSD solution.

What I’ve done is to customize it too make sure it works perfectly with Citrix Lifecycle Managment and also provide some extra logging features.

Detailed logging.

Automatically download and install ReportViewer.

Perform WSUS Installation using PowerShell 04

Automatically decline superseded updates.

Perform WSUS Installation using PowerShell 01

Automatically configure Products and Classifications.

Perform WSUS Installation using PowerShell 02

Configure and run Automatic Approvals.

Perform WSUS Installation using PowerShell 03

And that’s how you Perform WSUS Installation using PowerShell.

One Response to Perform WSUS Installation using PowerShell

  1. hi Trond,
    I stumbled upon your blog and noticed your comment about not being able to share your Blueprints. Just wanted to let you know that you could publish your Blueprint to the Catalog (provided you are authorized to do so). Please reach out to me if you are interested in doing so. I can put you in touch with the right people in Citrix.
    btw, I am part of the CLM Engineering team.

    – Jay

Leave a reply