samersultan / wsus-cleanup

PowerShell Script for cleaning up WSUS
41 stars 20 forks source link

Unable to connect to the remote server - Internal WSUS DB #4

Closed ThePieMonster closed 3 years ago

ThePieMonster commented 4 years ago

WSUS is using internal Windows DB and the script is running as Administrator.

running with full privileges
Connecting to database SUSDB on MICROSOFT##WID
Rebuilding DB Indexes
<Omitted this line as it contains the database rebuilding>
Compressing updates
Exception compressing updates:
Unable to connect to the remote server
Declining expired updates
Declining superseded updates
Reading obsolete update list.
Found 0 updates that can be deleted.
Removing obsolete computers
Stopping IIS..
Restarting WSUS service..
Starting IIS...
Deleting unneeded content files
Done deleting unneeded content files: Diskspace Freed:0
Completed script execution with 1 error(s)
Execution time 0 hours and 4 minutes.