Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

WSUS server for windows system: changing the path of WSUS update files

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

There is not enough hard disk space in wsus patch.

There is not enough hard disk space in the wsus patch. I deployed the WSUS server and used it normally. Now, due to the lack of hard disk space downloaded by the patch, I want to change the path of the patch download to a larger hard disk. What should I do?

When the disk is insufficient, if the update file is stored on the WSUS server and the disk is full, you may need to change the location where the WSUS stores the update file. If the disk on which the update file is stored fails and the substitute disk uses the new drive letter, you must also change the location where the update file is stored.

Due to insufficient disk space, you want to move the downloaded update file to a new partition.

Indeed, we can use the wsusutil.exe tool that comes with WSUS to update the installation files.

The specific steps are as follows:

1. Log in to the WSUS server as a local administrator.

two。 Create a folder in the target partition to hold update files such as e:\ wsus. (this directory must be established first)

3. Open a CMD command line window and go to the following path:

C:\ program files\ update services\ tools

4. Run the following command to transfer the update file:

Wsusutil.exe movecontent

Such as:

Wsusutil.exe movecontent e:\ WSUS e:\ move.log (the name of move.log can be taken at will, just to make it easy to view and transfer

Move record)

"e:\ WSUS" is the new destination path; "e:\ move.log" is the log during the transfer.

4.1 wuauclt / detectnow manually refresh the WSUS service

The move.log log is recorded as follows:

5. Confirm from the log that the transfer process is complete, and then delete the UpdateServicesPackages and WsusContent under the original WSUS folder. However, do not delete the UpdateServicesDbFiles folder, which may contain WSUSDB database files.

In addition, in order to free up more space, in addition to transferring updated files, you can also transfer database files if there is a need in the future.

The methods are as follows:

1. Run from the "CMD" command line:

Net stop wsusservice

two。 Use Microsoft SQL Server Management St io to connect to SQL Server and detach the SUSDB database.

3. Copy SUSDB.mdf and SUSDB_log.ldf to the new destination path.

4. Once again, use Microsoft SQL Server Management St io to attach the SUSDB database of the new location.

5. Run this command to start the service:

Net start wsusservice

6. Delete the original database file after confirming that WSUS is working properly.

After the relocation is complete, it is recommended that you clean up the WSUS server to reduce the waste of storage space and.

The steps are as follows:

1. Open the WSUS console and verify that unnecessary products, categories, and language versions will not be downloaded to the WSUS server from products and categories and Update Files and languages in options.

two。 Clean up the WSUS server:

a. For WSUS 3.0, open the server cleanup wizard under options, then select all options and perform cleanup.

b. For WSUS 2.0, follow these steps:

1)。 From the CMD window, go to the tool catalog of WSUS and run:

Wsusutil.exe deleteunneededrevisions

2)。 Download Server Diagnostic Tool from the following address:

Http://www.microsoft.com/windowsserversystem/updateservices/downloads/default.mspx

3)。 Run the tool in this way:

WsusDebugTool.exe / Tool:PurgeUnneededFiles

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report