How To Clear Software Distribution Folder
- Home
- Windows
- WSUS
Typically I have no issues renaming the SoftwareDistribution folder once the Windows Update service is off, but I have a few boxes that can't be renamed even after rebooting these boxes. Is there something else I can add to make this work? Here's my process:
1) Reboot the box in question
2) From an elevated command prompt:
--net stop wuauserv
--net stop CryptSvc
--net stop BITS
--ren %windir%\SoftwareDistribution SoftwareDistribution.old
Often I still get "access denied". Users are local admins on their own box.
Thanks in advance for any help!
I stop wuauserv, bits, and dosvc services. Occasionally wuauserv will start on its own right away before I can remove SoftwareDistribution. Telling wuauserv to stop again does the trick.
- ROM
- CPU
- RAM
- GPU
7 Replies
I stop wuauserv, bits, and dosvc services. Occasionally wuauserv will start on its own right away before I can remove SoftwareDistribution. Telling wuauserv to stop again does the trick.
Have you tried booting in Safe Mode?
I'll give adding dosvc to the script and also stopping WU last in line (stop it right before renaming the folder a try. Thanks.
This script worked for me. I believe adding dosvc and moving wuauclt to immediately before renaming the SoftwareDistribution folder is what helped fix the issue. Thanks for the help Brandon.
net stop CryptSvc
net stop BITS
net stop dosvc
net stop wuauserv
ren %windir%\SoftwareDistribution SoftwareDistribution.old
reg Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientId /f
reg Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientIDValidation /f
net start wuauserv
net Start BITS
net start CryptSvc
wuauclt /resetauthorization /detectnow
wuauclt /detectnow /reportnow
pause
This topic has been locked by an administrator and is no longer open for commenting.
To continue this discussion, please ask a new question.
How To Clear Software Distribution Folder
Source: https://community.spiceworks.com/topic/2036789-wsus-software-distribution-folder-won-t-delete
Posted by: deertheith.blogspot.com

0 Response to "How To Clear Software Distribution Folder"
Post a Comment