Dummvogl 5756a40983 Localize IIS and Local Admins (#11)
* Update Optimize-WsusServer.ps1

Added simple i18n

* Localize IIS Config Path and Local Admin Group

Fixed IIS config ACL changes not working for non-English languages.

* Update Optimize-WsusServer.ps1

Removed now redundant variables

* Update Optimize-WsusServer.ps1

Rearranging

* Update Optimize-WsusServer.ps1

Added missing $iisPath variable

Co-authored-by: Austin <30052685+awarre@users.noreply.github.com>
2021-11-01 14:11:12 -04:00
2020-07-31 12:34:26 -04:00
2020-07-31 15:47:00 -04:00
2021-10-27 13:28:56 -04:00

GitHub GitHub release (latest by date including pre-releases)

Optimize-WsusServer.PS1

About The Project

Comprehensive Windows Server Update Services (WSUS) cleanup, optimization, maintenance, and configuration PowerShell script.

Free and open source: MIT License

Features

  • Deep cleaning search and removal of unnecessary updates by product title and update title.
  • Removal of device drivers from WSUS repository (greatly improves speed, reliability, and reduces storage space needed).
  • IIS Configuration validation and optimization.
  • Disable device driver synchronization and caching.
  • WSUS integrated update and computer cleanup.
  • Microsoft best practice WSUS database optimization and re-indexing.
  • Creation of daily and weekly optimization scheduled tasks.

Table of Contents

Getting Started

Prerequisites

Installation

  1. Download Optimize-WsusServer.ps1
  2. From PowerShell run
Optimize-WsusServer.ps1 -FirstRun

Usage

Optimize-WsusServer.ps1 -FirstRun

Presents a series of prompts for user to initiate all recommended first run optimization tasks. Additional parameters will be ignored, as they will be redundant.

Optimize-WsusServer.ps1 -DisableDrivers

Disable device driver synchronization and caching.

Optimize-WsusServer.ps1 -DeepClean

Searches through most likely categories for unneeded updates and drivers to free up massive amounts of storage and improve database responsiveness. Prompts user to approve removal before deletion.

Optimize-WsusServer.ps1 -CheckConfig

Validates current WSUS IIS configuration against recommended settings. Helps prevent frequent WSUS/IIS/SQL service crashes and the "RESET SERVER NODE" error.

Optimize-WsusServer.ps1 -OptimizeServer

Runs all of Microsoft's built-in WSUS cleanup processes.

Optimize-WsusServer.ps1 -OptimizeDatabase

Runs Microsoft's recommended SQL reindexing script.

Optimize-WsusServer.ps1 -InstallDailyTask

Creates a scheduled task to run the OptimizeServer function nightly.

Optimize-WsusServer.ps1 -InstallWeeklyTask

Creates a scheduled task to run the OptimizeDatabase function weekly.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Project Link: https://github.com/awarre/Optimize-WsusServer

References

S
Description
Comprehensive Windows Server Update Services (WSUS) cleanup, optimization, maintenance, and configuration PowerShell script.
Readme MIT 207 KiB
Languages
PowerShell 100%