Solved

Move Location of Windows Update Files

Posted on 2010-11-15
7
887 Views
Last Modified: 2012-06-27
Is there a way to move the folder location of where a Windows 2003 server saves its downloaded Windows update files? I have a server that is running a bit low on disk space and if possible I would like it to download/save Windows update files to a drive that has a bit more drive space.
0
Comment
Question by:Rob Sanders
  • 4
  • 3
7 Comments
 
LVL 6

Expert Comment

by:ipajones
ID: 34139790
The default location for downloaded update files is: %systemroot%\SoftwareDistribution\Download and unfortunately you can't just move the updates download location.  Even if you stop the automatic updates service and delete the folder next time you run the update process the default location will just be recreated.

However, you can use a symbolic link to point the default folder to a different physical location.  Use the following steps at a command prompt:

1. Stop the Automatic Updates service
net stop wuauserv

2. Create a new location on your other drive (lets say e:\windows\new_softwaredistribution)
md e:\windows\new_softwaredistribution

3. Copy %systemroot%\SoftwareDistribution to your new location (e:\windows\new_softwaredistribution)
xcopy /s %systemroot%\SoftwareDistribution\*.* e:\windows\new_softwaredistribution

4. Rename the original folder %systemroot%\SoftwareDistribution
rename %systemroot%\SoftwareDistribution %systemroot%\old_SoftwareDistribution
(Once you're happy everything is working ok after you've completed this process use Windows Explorer to delete the complete folder tree)

5. Create the symbolic link
mklink /d %systemroot%\SoftwareDistribution  e:\windows\new_softwaredistribution

6. Restart the Automatic Updates service
net start wuauserv

Next time you run WindowsUpdate you should find the update files are downloaded to the new location.

NB. To remove a symbolic link just delete it like you would a normal file.

The above assumes you're using Windows Vista or later, if not then you won't find "mklink" in which case use the SysInternals "Junction" utility.  I've included the link to download it here:

http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx

--IJ
0
 
LVL 6

Accepted Solution

by:
ipajones earned 500 total points
ID: 34139834
Sorry - just re-read your question stating you're using Win2K3.  You'll need to use the "Junction" utility I mentioned above.

See a link to the complete process:
http://msmvps.com/blogs/jeffloucks/archive/2010/09/19/redirecting-updates-and-the-software-distribution-folder-using-junction-to-another-hard-drive.aspx
This is in essence the same as my steps above except using the SysInternals Junction tool instead.
0
 
LVL 1

Author Comment

by:Rob Sanders
ID: 34140093
Thank you for the suggestion. I am going to give that a try and see what happens. I will let you know.
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
LVL 1

Author Comment

by:Rob Sanders
ID: 34232019
Sorry it is taking me so long to get to this. I keep having other things come up that keep me from working on this. I will post an update as soon as I am able to give it a try.
0
 
LVL 6

Expert Comment

by:ipajones
ID: 34479586
tbonejackson:

Did you have any joy with this ?  If not post back and I'll try and answer any queries.

--IJ
0
 
LVL 1

Author Comment

by:Rob Sanders
ID: 34641556
Sorry i haven't posted anything concerning this. I have had a variety of other issues to deal with that have kept me from this. I will address soon and post an update.
0
 
LVL 1

Author Comment

by:Rob Sanders
ID: 34971697
Thanks for the assistance, this solution worked out pretty well.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question