@@ -8,7 +8,6 @@ These tools are designed for **Active Directory** and **standalone** environment
88
99## ✅ Key Features
1010- ** Graphical Interface** : Run maintenance tasks via GUI (no command line required)
11- - ** FQDN-Aware** : Automatically detects and uses the server ** FQDN** if none is provided in the GUI/JSON
1211- ** Index Optimization** : Reports fragmentation and generates ** smart reindex scripts** for SUSDB
1312- ** Assembly Detection** : Validates and loads WSUS Admin assemblies from the GAC or known paths
1413- ** Centralized Logging** : ` .log ` and ` .csv ` outputs with structured, timestamped entries
@@ -55,8 +54,8 @@ These tools are designed for **Active Directory** and **standalone** environment
5554| Script | Function |
5655| --------| ----------|
5756| ** Check-WSUS-AdminAssembly.ps1** | Detects/loads ` Microsoft.UpdateServices.Administration.dll ` ; guides installation if missing |
57+ | ** Generate-WSUSReindexScript.ps1** | Prompts thresholds and generates ` wsus-reindex-smart.sql ` for SUSDB index maintenance |
5858| ** Maintenance-WSUS-Admin-Tool.ps1** | GUI: decline updates (expired, superseded, unapproved), cleanup obsolete files/computers, SUSDB tasks (CHECKDB, shrink, reindex, backup) |
59- | ** RebuildWSUS-Classifications.ps1** | Resets WSUS ** Classifications** when MMC fails to show all categories (local execution recommended) |
6059
6160---
6261
@@ -68,12 +67,18 @@ These tools are designed for **Active Directory** and **standalone** environment
68673 . Select maintenance tasks (check boxes)
69684 . Run and monitor execution in the status window and log
7069
71- ### Classifications Reset
72- Run directly ** on the WSUS server ** if MMC classifications are incomplete :
70+ ### Index Reindex Script
71+ Generate a smart T-SQL script :
7372``` powershell
74- .\RebuildWSUS-Classifications.ps1 -ServerName "wsusn01-tjap.sede.tjap" -Port 8530 -UseSSL:$false
73+ .\Generate-WSUSReindexScript.ps1
74+ ```
75+ The script creates ` wsus-reindex-smart.sql ` with logic to reorganize or rebuild indexes based on thresholds.
76+
77+ ### Assembly Validation
78+ Check if the WSUS Administration assembly is installed and loadable:
79+ ``` powershell
80+ .\Check-WSUS-AdminAssembly.ps1
7581```
76- After running, reopen ** WSUS MMC → Options → Products and Classifications → Classifications** .
7782
7883---
7984
@@ -106,7 +111,6 @@ After running, reopen **WSUS MMC → Options → Products and Classifications
106111
107112- ** ` sqlcmd.exe ` not found** → Install SQL Server Command Line Utilities and add to PATH
108113- ** ` Get-WsusServer failed ` ** → Ensure WSUS Admin Console is installed and run PowerShell as Admin
109- - ** MMC missing classifications** → Run ` RebuildWSUS-Classifications.ps1 ` locally on the WSUS server
110114- ** WinRM errors in remote mode** → Enable remoting with:
111115 ``` powershell
112116 Enable-PSRemoting -Force
@@ -117,4 +121,5 @@ After running, reopen **WSUS MMC → Options → Products and Classifications
117121## 🔒 Scheduling & Security
118122- Use ** Task Scheduler** or ** GPO** for recurring maintenance (overnight)
119123- Centralize logs by redirecting ` $LogDir ` to a UNC path
120- - Always run as a ** WSUS Administrator** account (least privilege recommended)
124+ - Always run as a ** WSUS Administrator** account (least privilege recommended)
125+
0 commit comments