Link to home
Start Free TrialLog in
Avatar of Dan
DanFlag for United States of America

asked on

wsus server out of storage space

I am running WSUS 2012 R2, and my 2TB drive is almost full of the wsus content.  The WSUS folder is at almost 1.5TB and I didn't even select all the options, only that I need for my organization.

Is there a way to delete old updates from my drive via WSUS?  When I go to C:\wsus_database\WsusContent, I see different folders with .cab files, and  it's probably not wise to delete files directly that way, right?

Any suggestions?
Avatar of Sean Bravener
Sean Bravener

periodically what you need to do is go in and cleanup the DB of superseeded and expired patches.  here is an automated process to do so.  
https://gallery.technet.microsoft.com/scriptcenter/WSUS-Maintenance-w-logging-d507a15a

this goes in and deletes old patches and removes their content.  unfortunately the new patching model maintains large files so 2 TB is almost not enough if you are maintaining patches for a large environment.
Avatar of Dan

ASKER

I tried using the built in server cleanup wizard, but every time I get this error, I even restarted the server, same error.

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Sean Bravener
Sean Bravener

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dan

ASKER

I tried to run the script, but it's failing:

User generated image
forgive the simple questions
are you running from a admin PS session?
are you running from the WSUS server itself?
what version of PS are you running?  is it at least V3?
Avatar of Dan

ASKER

1. yes, I ran powersehll as admin, right clicked, and selected run as admin
2. yes, I ran the script from the local wsus server
3. User generated image
Avatar of Dan

ASKER

what do I do next?
Avatar of Dan

ASKER

I have restarted IIS and then opened the wsus console, still same error.  I have restarted the server, still the same error.
I tried running the script again, and still the same error.  It's this love hate relationship with Microsoft, I like the fact that it has a GUI for the OS, but it has so many bugs, they just can't write code.
Avatar of Dan

ASKER

Thanks for your help