cannot Rename SoftwareDistribution folder error "the action can't be completed because the folder or a file in it is open in another program"

Anonymous
2014-11-30T16:22:08+00:00

OT: Renaming SoftwareDistribution folder

Split from this thread.

i cannot rename the folder SoftwareDistribution to SDold 

It says That the action can't be completed because the folder or a file in it is open in another program  what can i do then

Windows for home | Windows 11 | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2014-11-30T16:23:39+00:00

Select Start, All Programs, Accessories, right click Command Prompt, and click Run as administrator from the drop down menu.. Type *cd* and press ENTER.

Type net stop wuauserv and press the ENTER key.

Type ren c:\windows\SoftwareDistribution softwaredistribution.old and press the ENTER key.

Type: net start wuauserv and press the ENTER key.

Type: exit and press the ENTER key

Was this answer helpful?

100+ people found this answer helpful.
0 comments No comments

12 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-07-05T11:24:44+00:00

    Thanks to everyone for their brilliant guides. Here is a summary of the whole lot:

    1. Press the Windows key, type "cmd", right click the Command Prompt icon that appears at the top of the list, and click Run as administrator from the drop down menu.
    2. Type net stop wuauserv and press the ENTER key.

    >> If it does not report "The Windows Update service was stopped successfully", then try running Step 3, and then try this step once more after that. If that doesn't work, try Start > type Services > find Windows Update > right-click > select Stop. It might help to turn off your Wi-Fi.

    1. Type net stop bits and press the ENTER key.
    2. Type ren C:\Windows\SoftwareDistribution softwaredistribution.old and press the ENTER key.

    >> If you get an "Access is denied" response, then try the following:

    • Go to Settings > Update + Security > Recovery > Advanced Startup > Restart now
    • After the restart, from the blue screen of options, select Troubleshoot-> Advanced -> Command Prompt

    Type ren C:\Windows\SoftwareDistribution softwaredistribution.old and press the ENTER key.

    (If for some reason the folder can't be found, type diskpartand wait till it starts up. Then type list volume, and determine what letter is assigned to your Windows OS partition. Type quit to exit diskpart. Replace the above command's "C" with whatever you find necessary)

    1. Close the command prompt with the "X" in the top right-hand corner of the window, and select Continue to Windows from the screen of options that appears.
    2. Press the Windows key, type "update", click the "Check for updates" option that appears at the top of the start menu. Once started, click "Check for updates" button.

    Since you deleted the SoftwareDistribution folder, the search for updates may take longer than normal, but it is a small price to pay to get Windows Update working again!

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-07-01T23:31:29+00:00

    In Windows 10 you can go to Settings -> Update + Security -> Recovery -> Advanced Startup -> Restart now

    You'll be logged out and on the next menu select Troubleshoot -> Advanced -> Command Prompt

    Your PC will restart and you'll get a blue screen with the usual command prompt. Windows isn't running so no need to stop any services. You can type in the same rename command here. 

    Only instead of C:\windows\softwaredistribution it will now be D:\windows\softwaredistribution

    It seems the drive letter is changed by one in this mode, so change it accordingly.

    It allowed me to rename the softwaredistribution folder when it said it was in use by a process regardless of which services I stopped.

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2017-01-09T06:22:39+00:00

    is that so?

    i tried it right after restarting and disconnecting wifi and it worked.

    maybe you have to search for the other affecting programs first before deleting it.

    or maybe try to do it in safe mode?

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2015-07-15T16:08:50+00:00

    Hi,

    Did you run Command prompt in Elevated mode as suggested by Mr. Gerry C J Cornell?

    Please reply to help you further.

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments