Welcome to Sign in | Join | Help
in
Home Blog Forums

The Lazy Admin

Manage WSUS from a CLI

Sponsor


Many admins prefer to use a command line interface (CLI) to perform the management of servers and services. If you know the commands it can be much faster than using a GUI. WSUS is one of those servers that can be managed via a command line.

The tool used to manage a WSUS server via the command line is WSUSUtil.exe and it can perform a number of tasks with the following switches.

  • /export - exports the metadata allowing for backup of the WSUS server config
  • /import - imports the metadata that you exported with /export when restoring a WSUS server
  • /movecontent - this switch is used to move the update files to a different hard drive or partition.
  • /migratesus - you can use this switch to migrate your approvals from your old SUS server
  • /deleteuneededrevisions - if your MSDE database is nearing its capacity you can use this to remove older revisions of updates
  • /listinactiveapprovals - will list all approvals that are no longer active. Updates become inactive when you change a setting, perhaps you no longer have any Windows 2000 clients, or any Outlook XP clients or changes were made to the languages supported.
  • /removeinactiveapprovals - removes those listed above
  • /reset - this is the most handy switch in my experience. When an update file becomes corrupt this will force the update to be re-downloaded.

For more information see:

Managing WSUS from the Command Line





Published Thursday, August 17, 2006 6:06 AM by rodney.buike
Filed under:

Comments

No Comments
Anonymous comments are disabled


All postings are provided "AS IS" with no warranties, and confer no rights.
Microsoft product screen shot(s) reprinted with permission from Microsoft Corporation.