Appendix A: Unattended Installations
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2008, Windows Server Update Services
You can use command-line parameters to run WSUS Setup in unattended mode. When running this way, WSUS Setup does not display a user interface (UI). If you need to troubleshoot the setup process, use the log files, which you can find at the following location:
WSUSInstallationDrive:\Program Files\Microsoft Windows Server Update Services\LogFiles\
Use command-line parameters from a command prompt.
Type the following command:
WSUSSetup.exe /command-line parameter property=value
where command-line parameter is a command-line parameter from the WSUS Setup command-line parameters table, where property is a property from the WSUS Setup properties table, and where value is the actual value of the property being passed to WSUS. Both tables are included below.
If you need to pass a value to WSUS Setup, use the property name, an equals sign ("="), and its value. Properties are always paired with values. For example, if you wanted WSUS Setup to install silently and set the WSUS Content Directory to the D:\WSUS directory, you would use the following syntax:
WSUSSetup.exe /q CONTENT_DIR=D:\WSUS
If you need help with WSUSutil.exe, you can use the /help command to display the list of command-line parameters:
WSUSSetup.exe /help
WSUS setup command-line parameters
Option | Description |
---|---|
/q |
Perform silent installation. |
/u |
Uninstall the product. |
/p |
Inspect the system and report any prerequisites that are missing. Does not install WSUS. |
/?, /h |
Display command-line parameters and their descriptions. |
/g |
Upgrade from the 2.0 version of WSUS. The only valid parameter with this option is /q (silent installation). The only valid property with this option is DEFAULT_WEBSITE. |
WSUS setup properties
Property | Description |
---|---|
CONTENT_LOCAL |
0=content hosted locally, 1=host on Microsoft Update |
CONTENT_DIR |
Path to content directory. Default is WSUSInstallationDrive\WSUS\WSUSContent, where WSUSInstallationDrive is the local drive with the largest amount of free space. |
WYUKON_DATA_DIR |
Path to Windows Internal Database data directory. |
SQLINSTANCE_NAME |
The name should appear in the format ServerName\SQLInstanceName. If the database instance is on the local machine, use the %COMPUTERNAME% environment variable. If an existing instance is not present, the default is %COMPUTERNAME%\WSUS. |
DEFAULT_WEBSITE |
0=port 8530, 1=port 80 |
PREREQ_CHECK_LOG |
Path and file name for log file |
CONSOLE_INSTALL |
0=install the WSUS server, 1=install console only |
ENABLE_INVENTORY |
0=do not install inventory features, 1=install inventory features |
DELETE_DATABASE |
0=retain database, 1=remove database |
DELETE_CONTENT |
0=retain content files, 1=remove content files |
DELETE_LOGS |
0=retain log files, 1=remove log files (used with the /u install switch). |
CREATE_DATABASE |
0=use current database, 1=create database |
PROGRESS_WINDOW_HANDLE |
Window handle to return Microsoft© Windows© Installer progress messages. |
MU_ROLLUP |
1=join Microsoft Update Improvement Program, 0=don't join |
FRONTEND_SETUP |
1=do not write the content location to the database, 0=write the content location to the database (for NLB) |