/
WSUS

WSUS

The WSUS server for ECE Undergraduate Labs is hosted at ece-li-wsus.uwaterloo.ca.

Room Assignments

Each computer should be assigned to its appropriate room folder in the WSUS app.

  • Login to ece-li-wsus.uwaterloo.ca.

  • Start MenuWindows Administrative ToolsWindows Server Update Services

When a computer is newly installed, after it has been added to the Domain, it should appear under Update Services → ECE-LI-WSUS → Computers → All Computers → Unassigned Computers.

  • Right-click on the listing for the computer.

  • Select Change Membership… from the pop-up menu.

WSUS Package Publisher

The WSUS Package Publisher is used to create custom installation packages for WSUS deployment.

PowerShell script

Use a PowerShell script to drive the installation package. The following template script shows a typical install pattern for the PowerShell script.

if (-not (Test-Path -Path "C:\Temp" -PathType Container)) { New-Item -Path "C:\Temp" -ItemType Directory } Copy-Item -Path "installation_file.exe" -Destination "C:\Temp" Start-Process -FilePath "C:\Temp\installation_file.exe" -ArgumentList "arguments"

The key steps to the process are:

  1. Create a C:\Temp folder, if it does not already exist. This folder will serve as the staging area for the install files.

  2. Copy any necessary files from the WSUS package to the C:\Temp folder. It is easier to handle the files from a known location rather than guessing where WSUS has placed the files.

  3. Run the installation with any necessary parameters.

Convert PowerShell script to EXE

The Powershell script is converted to an EXE file in order for WSUS to use it as the driver for the rest of the install package. Use the PS2EXE utility.

The PS2EXE utility should already be installed on the ece-li-wsus server. But if it is not, it can be installed using the Powershell terminal:

Install-Module -Name PS2EXE -Force

To convert a Powershell script to EXE, use the following from a Powershell terminal:

Invoke-ps2exe Yourscript.ps1 -out OutputExecutable.exe