Access Denied

At the Command Prompt I typed: Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak . I received the message: Access Denied. How do I get access to this command to correct a Windows 8.1 Update Error Code 80070002?
 

Question Info


Last updated November 18, 2018 Views 1,003 Applies to:
Hey DavidRevikPrimo,

Have you tried to run Command Prompt as an administrator?

Let me know.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

DavidRevikPrimo,

I forgot to say how, in case that you're not familiar with the process. Go to Start, look for "cmd" without quotes, and right-click Command Prompt, then Run as administrator.

2 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

That rename is actually part of a long process. If you don't follow the process, there will be programs/"processes" running in the background that will have it locked, preventing the rename

#1 Manual Reset Windows Updates
the problems remain, you have to revert to a manual process to reset Windows Update
Check that System Restore is turned on and configured
https://www.pcworld.com/article/2955023/windows...
https://www.tekrevue.com/how-to-enable-system-r...

Create a System restore point. (https://support.microsoft.com/en-us/help/402753... )
Use the following process to effectively delete the folders used by Windows Update:
#1 Start a command prompt in Administrator Mode:
In start menu search for CMD
Right click on it
Select “Run as Administrator”
#2: Stop various Windows Update Service, Cryptographic, Background Intelligent Transfer Service, and MSI Installer Windows services.
To do this, disconnect from the Internet. That means turning off Wi-Fi and disconnecting from a wired connection. If you don’t, Windows 10 will indicate some files are in use and cannot be modified or the command will be non-responsive. Restart your computer after disconnecting from the Internet.
Then type the following commands at a command prompt. Press the “ENTER” key after you type each command.
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver

#3 Rename the folders used by Windows Update:
Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
Ren C:\Windows\System32\catroot2 Catroot2.old

Reconnect to the internet

#4 Restart the services:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver

#5 Restart the computer:
Reboot the computer
open Windows Update
click Check for updates.
*
****** ****** ******** ******** ******* ******* ******
*

When things are bad, you can either:
- cuss,
- cry or
- laugh ...

Why not choose to laugh

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Before carrying out this procedure, disconnect from the Internet. That means turning off Wi-Fi and disconnecting from a wired connection. If you don't, Windows 10 will indicate some files are in use and cannot be modified or the command will be non-responsive. Also, you should restart your computer after disconnecting from the Internet.

Press Windows key + X
Click Command Prompt (Admin)

Type each of the following then hit Enter

taskkill /f /fi "SERVICES eq wuauserv" (Do this multiple times)
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
rmdir C:\Windows\SoftwareDistribution\DataStore
rmdir C:\Windows\SoftwareDistribution\Download

When complete, hit Enter, then restart, then try updating again.

If that does not work..

Press Windows key + X
Click Command Prompt (Admin)

Type each of the following then hit Enter

Run these codes:
Net Stop bits
Net Stop wuauserv
Net Stop appidsvc
Net Stop cryptsvc
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
Net Start bits
Net Start wuauserv
Net Start appidsvc
Net Start cryptsvc
After running these commands, check if your issue is fixed.

Try this additional tips to see if they work:

Troubleshoot Windows Update Problems in Windows Using These Five Tips

https://windows10.help/blogs/entry/23-troublesh...
Best,
Andre
Windows Insider MVP
MVP-Windows and Devices for IT
twitter/adacosta
groovypost.com

2 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.