Howto Reinstall WSUS from Scratch (2023)

Microsoft, Windows Server, Windows Server 2016, Windows Server 2019, Windows Server Core, WSUSAdd comments

May 162019

Howto Reinstall WSUS from Scratch (1)

There may be a situation where you wish to completely reinstall WSUS from scratch. This can occur for a number of reasons, but most commonly is due to database corruption, or performance issues due to a WSUS database that hasn’t been maintained properly with the normal maintenance.

Commonly, when regular maintenance hasn’t occurred on a WSUS database, when an admin finally performs it, it can take days and weeks to re-index the database, clean up the database, and run the cleanup wizards.

Also, due to timeouts on IIS, the cleanup wizard may fail which could ultimately cause database corruption.

Administrators often want or choose to blast away their WSUS install, and completely start from scratch. I’ve done this numerous times in my own environment as well as numerous customer environments.

In this guide, we are going to assume that you’re running WSUS on a Windows Server that is dedicated to WSUS and is using the WID (Windows Internal Database) which is essentially a built-in version of SQL Express.

PLEASE NOTE: If you are using Microsoft SQL, these instructions will not apply to you and will require modification. Only use these instructions if the above applies to you.

What’s involved

WSUS (Windows Server Update Services) relies on numerous Windows roles and features to function. As part of the instructions we’ll need to completely clear out:

  • WSUS Role, Configuration, and Folders/Files
  • IIS Role, Configuration, and Folders/Files
  • WID Feature, Configuration, and Database Files

Since we are completely removing IIS (Role, Configuration, and Folders/Files), only proceed if the server is dedicated to WSUS. If you are using IIS for anything else, this will completely clear the configuration and files. You also do not want to run this on a domain controller as Active Directory also uses WID.

Let’s get to it!

Instructions

  1. Open “Server Manager” either on the host, or remotely and connect to the host you’d like to reinstall on.
  2. Open “Remove Roles and Features” wizard.
  3. Click “Next”, and select the Server, and click “Next” again.
  4. On the “Remove server roles” screen, under “Roles”, we want to de-select the following: “Web Server (IIS)” and “Windows Server Update Services” as shown below. Howto Reinstall WSUS from Scratch (2)
  5. Click “Next”
  6. On the “Remove features” screen, under “Features”, we want to de-select the following: “Windows Internal Database” and “Windows Process Activation Service” as shown below. Howto Reinstall WSUS from Scratch (3)
  7. Click “Next” and follow the wizard to completion and remove the roles and features.
  8. Restart the Server.
  9. Open an administrative command prompt on the server, and run the command “powershell” or open powershell directly.
  10. Run the following command in powershell to remove any bits and pieces:
    Remove-WindowsFeature -Name UpdateServices,UpdateServices-DB,UpdateServices-RSAT,UpdateServices-API
  11. Restart the Server.
  12. We now must delete the WSUS folders and files. Delete the following folders:
    C:\WSUSC:\Program Files\Update Services

    Note: You may have stored the WSUS content directory somewhere else, please delete this as well.
  13. We now must delete the IIS folders and files (and configuration, including the WsusPool application pool, bindings, etc.). Delete the following folders:
    C:\inetpubC:\Windows\System32\inetsrv

    Note: You may have issues deleting the “inetsrv” directory. If this occurs, simply rename it to “inetsrv.bad”.
  14. We now must delete the WID (Windows Internal Database) folders and files (including the WSUS SQL Express database). Delete the following folder:
    C:\Windows\WID
  15. While we removed the IIS folders and files, we deleted a needed system file. Run the following command to restore the file:
    sfc /scannow
  16. Restart the Server.

WSUS, IIS, and WID have at this point been completely removed. We will now proceed to install, apply a memory fix, and configure WSUS.

For instructions on installing WSUS on Server Core, please click here: https://www.stephenwagner.com/2019/05/15/guide-using-installing-wsus-windows-server-core-2019/

  1. Open “powershell” (by typing powershell) and Install the WSUS Role with the following command:
    Install-WindowsFeature UpdateServices -Restart
  2. (Optional) If you want to install the WSUS MMC Snap-In/GUI, run the following command in the powershell window:
    Install-WindowsFeature UpdateServices-RSAT, UpdateServices-UI
  3. Run the post installation task command in command prompt to configure WSUS:
    "C:\Program Files\Update Services\Tools\wsusutil.exe" postinstall CONTENT_DIR=C:\WSUS
  4. AT THIS POINT DO NOT CONTINUE CONFIGURING WSUS AS YOU MUST APPLY A MEMORY FIX TO IIS.
  5. Apply the “Private Memory Limit (KB)” fix as provided here: https://www.stephenwagner.com/2019/05/14/wsus-iis-memory-issue-error-connection-error/
  6. Restart the Server.
  7. Open the WSUS MMC on the server or remotely from a workstation on the network and connect it to the WSUS instance on your Server Core install.
  8. Run through the wizard as you would normally and perform an synchronization.
  9. WSUS has been re-installed.

And that’s it. You’ve completely reinstalled WSUS from scratch on your Windows Server.

31 Responses to “Howto Reinstall WSUS from Scratch”

  1. Howto Reinstall WSUS from Scratch (4)

    olsonnn says:

    11/29/2019 at 3:35 AM

    what a mess 🙁
    Thanks you saved my day

  2. Howto Reinstall WSUS from Scratch (5)

    Alan says:

    01/31/2020 at 9:45 AM

    Thank you, everything was on point

  3. Howto Reinstall WSUS from Scratch (6)

    Jim Terryberry says:

    02/13/2020 at 9:41 AM

    GAHHH…I’ve tried reinstalling WSUS three or four times and keep getting the same error – “one or several parent features are disabled so current feature can not be enabled”

    I sought out someway to I’ve tried following these instructions twice and the powershell install command fails. DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager

  4. Howto Reinstall WSUS from Scratch (7)

    Stephen Wagner says:

    02/13/2020 at 9:44 AM

    Hi Jim,

    Sounds like you might be having some issues with the OS itself that might be stopping this from working.

    Are you running these commands as admin? Is the OS experiencing any other odd issues?

    Cheers

  5. Howto Reinstall WSUS from Scratch (8)

    Jim Terryberry says:

    02/13/2020 at 10:02 AM

    I am a domain admin. It doesn’t appear the OS is experiencing any other issues. I’m not sure what ‘parent features’ could be derailing it.

    Also – side note – I removed IIS per your instructions but when I run the scm /scannow command it completes but didn’t find any integrity violations so ….nothing was repaired?

    (Video) 7 How to install and configure WSUS in Windows server 2019

  6. Howto Reinstall WSUS from Scratch (9)

    Stephen Wagner says:

    02/13/2020 at 10:14 AM

    Hi Jim,

    The scan command should replace files that were deleted in previous steps. I’ve noticed sometimes that it doesn’t report anything is missing.

    That’s odd about the parent features error. Are you copying and pasting the commands exactly as they are detailed in the post? Which command reports that issue?

    Stephen

  7. I’m redoing it now but I believe it was the first install command

    Install-WindowsFeature UpdateServices -Restart

    that generates the DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager

    So if I use the regular server manager installer I get the parent message. When I use the Powershell command I get the DISMAPI error.

  8. Howto Reinstall WSUS from Scratch (11)

    Jim Terryberry says:

    02/13/2020 at 10:23 AM

    Here’s the error I receive.

    PS C:\Windows\system32> Install-WindowsFeature UpdateServices -Restart

    Success Restart Needed Exit Code Feature Result
    ——- ————– ——— ————–
    False Maybe Failed {}
    Install-WindowsFeature : Call was canceled by the message filter.
    At line:1 char:1
    + Install-WindowsFeature UpdateServices -Restart
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : DeviceError: (Microsoft.Manag…rDetailsHandle):CimException) [Install-WindowsFeature],
    Exception
    + FullyQualifiedErrorId : UnSupportedTargetDevice,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureComman
    d

    PS C:\Windows\system32>

  9. Howto Reinstall WSUS from Scratch (12)

    Jim Terryberry says:

    02/14/2020 at 8:50 AM

    I found this.

    https://stackoverflow.com/questions/46729839/enable-feature-tcp-activation-on-windows-server-2016-fa

    It explains how to find what the disabled Parent feature could be but I don’t know what -WindowsFeature component to test. I tried -Name Web-Server for IIS and UpdateServices but both DependsOn fields came up blank. What other features are installed with WSUS that I can try?

  10. Howto Reinstall WSUS from Scratch (13)

    Stephen Wagner says:

    02/14/2020 at 8:52 AM

    Jim,

    I would recommend checking the event log and troubleshooting this. I have a feeling that your OS install has issues and it might be worth while correcting it before it turns in to something big in the future.

  11. Howto Reinstall WSUS from Scratch (14)

    Molla says:

    05/12/2020 at 2:13 AM

    This has saved my skinny behind, phew!

  12. Howto Reinstall WSUS from Scratch (15)

    (Video) How to Install & Configure WSUS Server Windows Server 2019 - Video 11 Windows Server 2019 Training.

    Duong Cam says:

    07/31/2020 at 1:19 AM

    Thank you Mr.Stephen Wagner, I try and success. You saved my time to reinstall from begin.
    Thank you.

  13. Howto Reinstall WSUS from Scratch (16)

    Stephen Wagner says:

    07/31/2020 at 5:46 PM

    Hi Duong,

    Glad to the post helped! 😀

    Stephen

  14. Howto Reinstall WSUS from Scratch (17)

    David says:

    11/12/2020 at 12:40 PM

    I have other web services running on the same server, so I don’t want to completely remove IIS if possible, any advice?

  15. Howto Reinstall WSUS from Scratch (18)

    JBtech says:

    02/11/2021 at 2:40 PM

    Because of our server restrictions, I had to run the “postinstall CONTENT_DIR=C:\WSUS” command as follows:

    cd “C:\program files\update services\tools\”
    then
    .\wsusutil.exe postinstall content_dir=D:\wsus
    (we use D: instead of C:)

    For anyone who is getting the “Unexpected token ‘postinstall’ in expression or statement.” error

  16. Howto Reinstall WSUS from Scratch (19)

    Stony says:

    02/25/2021 at 6:32 AM

    This worked perfectly on windows 2019, had to run post installation task in Admin CMD.

  17. Howto Reinstall WSUS from Scratch (20)

    GraniteStateColin says:

    05/08/2021 at 6:24 PM

    Confused how this can work for anyone: the commands for reinstalling WSUS from PowerShell don’t reinstall IIS after removing it on Server 2016. It’s partly there (looks like 10 of 43 components installed according the info in the Add Server Roles window), but there is no IIS Management section to run the Memory Fix in step #5. In fact, there’s no IIS anywhere in the Start menu.

    Is there a missing step where we’re supposed to use the Add Roles and Features Wizard or another PowerShell command to restore the other removed pieces of IIS? Do we need to do the install from the “Add Roles and Features Wizard” to ensure IIS installs properly?

  18. Howto Reinstall WSUS from Scratch (21)

    Stephen Wagner says:

    05/08/2021 at 6:35 PM

    Hi GraniteStateColin,

    When you install WSUS, it will install the required IIS prerequisites.

    If you’re going to locally manage IIS, you’ll need to install the feature/role for the IIS Management MMC.

    To answer your other question, if you had any special IIS features installed that you need back, you’ll need to manually install those using powershell or the “Add/Remove Features and Roles” as it won’t reinstall any custom combinations of features or roles you may have had before.

    Hope this helps!

    Cheers,
    Stephen

  19. Howto Reinstall WSUS from Scratch (22)

    GraniteStateColin says:

    05/09/2021 at 7:18 AM

    Stephen, thanks for the quick response. I’m not sure why, but when I followed the steps above, I do not get all of the needed IIS components installed. In the Add Roles and Features set, it shows 10 of 43 installed, so some pieces of IIS installed, but not the IIS Manager. On the other hand, when I use Add Roles & Features, to add WSUS per the standard new-install instructions, I get 11 out of 43 IIS components and the IIS Manager is included. 11 vs. 10.

    If this doesn’t sound right to you, maybe that’s a sign that something is wrong with the server I’m trying to fix, but seems strange that 10 of the needed 11 IIS components did install, and that all install as expected if I use the GUI method.

    Is there any downside in your experience to installing from Add Roles & Features in place of re-install steps 1 – 3?

    (Video) Install WSUS on Windows Server 2019!
  20. Howto Reinstall WSUS from Scratch (23)

    Stephen Wagner says:

    05/09/2021 at 4:45 PM

    Hi GraniteStateColin,

    No worries. Sorry I’m a bit more delayed today.

    When you say that you didn’t get all the needed IIS components, are you referring to what’s needed for WSUS, or what’s needed for something else?

    Using the commands in this post, will install what’s needed for a basic install of WSUS using the command line to get up and running fast. When you re-install, you can also use the GUI as well if you’d like which may install more components. This is a bare install (which I do for security reasons).

    As mentioned, if you want to run the IIS Manager locally, you’ll need to add it using the Add Server Roles/Features wizard. The command in this post skips this as most people use RSAT from another system or server.

    You can use the the command or the Add Roles and Features to install. The most important thing is uninstalling it properly to make sure no traces are left.

    Cheers,
    Stephen

  21. Howto Reinstall WSUS from Scratch (24)

    GraniteStateColin says:

    05/10/2021 at 7:08 PM

    Stephen, specifically, in your step #5 of the reinstall, where it refers to your other page to remove the memory limit for WSUS in IIS, at least for me, that’s impossible following the PowerShell commands here. I was able to get that to work by instead using the Add Roles and Features Wizard and add WSUS that way instead. That added 1 more IIS module (11 out of 43 vs 10 out of 43 when using the PowerShell commands).

    Everything seems to be working again for me, with that change to the instructions (reinstall using the GUI instead of the commands on this page so that it’s possible to remove the memory limit via IIS). Your steps to ensure a full uninstall were profoundly helpful.

  22. Howto Reinstall WSUS from Scratch (25)

    Stephen Wagner says:

    05/11/2021 at 2:43 AM

    The command to install the IIS Manager varies, version to version, on Windows, so I didn’t include it since it can be easily installable via the Add Features and Roles wizard.

    I’m glad to hear you’re up and running though! 🙂

  23. Howto Reinstall WSUS from Scratch (26)

    Youssef says:

    05/24/2021 at 7:55 AM

    Really, Thanks for these informatio, but when I tried to install after uninstall I have this error from PowerShell:

    Install-WindowsFeature : The request to add or remove features on the specified server failed.
    The operation cannot be completed, because the server that you specified requires a restart.
    At line:1 char:1
    + Install-WindowsFeature UpdateServices -Restart
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : DeviceError: (@{Vhd=; Credent…Name=localhost}:PSObject) [Install-WindowsFeature], Exce
    ption
    + FullyQualifiedErrorId : DISMAPI_Error__Failed_Reboot_Required,Microsoft.Windows.ServerManager.Commands.AddWindow
    sFeatureCommand

  24. Howto Reinstall WSUS from Scratch (27)

    Cass Howorth says:

    06/15/2021 at 1:28 PM

    IIS Did not appear to install in Server2019 as others have mentioned.
    The inetpub and sub-directories ARE there but service does not appear.
    You can’t do the Mem config before starting IIS cuz IIS isn’t available.
    Even with mmc.exe I can’t add IIS after reboot. Had to go to Add remove Roles and Add IIS Management Console for it to be accessible to make the mem change suggested.
    Other than that everything seemed to work. Thanks.

  25. Howto Reinstall WSUS from Scratch (28)

    Kalyan Singh says:

    07/26/2021 at 4:09 AM

    (Video) WSUS Patching Process Step By Step | Windows Server 2019

    Thanks for guidance i have reinstalled WSUS successfully.

  26. Howto Reinstall WSUS from Scratch (29)

    ralph Westland says:

    10/13/2021 at 2:25 PM

    After run post install for WSUS on a Server 2016 DC server we receive database errors:
    ClientConnectionId:ef156204-4956-4309-8cd4-0b7d2c353c62
    Error Number:3605,State:1,Class:16
    Fatal Error: Schema verification failed for database ‘SUSDB’.
    ALTER DATABASE statement failed.
    Failed to restart the current database. The current database is switched to master.

    SQL query to set database to Master is failed with same error

    I removed WSUS, reboot server, Removed WID en reboot server.
    Removed all folders of WSUS en WID
    Framework 4.7 is not installed
    Reinstalled WID en reboot server
    Installed WSUS en reboot server
    Run post install task en receive the database error

    On server server 2016 DC it is running without any problems, only this server give troubles.

    Help please.

  27. Howto Reinstall WSUS from Scratch (30)

    Stephen Wagner says:

    10/13/2021 at 2:33 PM

    Hi Ralph,

    You should not install WSUS on a domain controller. Also, I strongly recommend not performing the steps in this post on a domain controller, as Active Directory also uses WID so you cannot remove or alter it.

  28. Howto Reinstall WSUS from Scratch (31)

    Ben says:

    01/11/2022 at 9:13 AM

    Hi,
    thanks you for the post. It is really well done !
    Just a word, with the reinstallation steps, it only miss the IIS console Management installation step and we are all good. Indeed, I strictly followed your tutorial, and this is the only missing step I have noticed.
    Have a good day and thank you again for this:)

    Cheers

  29. Howto Reinstall WSUS from Scratch (32)

    Parshiwal says:

    02/07/2022 at 10:37 PM

    Step 4 should be installing IIS… i think. Here is command line:
    Install-WindowsFeature -name Web-Server -IncludeManagementTools

  30. Howto Reinstall WSUS from Scratch (33)

    Kevin says:

    03/03/2022 at 2:48 AM

    I am getting below error after:

    “C:\Program Files\Update Services\Tools\wsusutil.exe” postinstall CONTENT_DIR=E:\WSUS

    PS C:\Windows\system32> “C:\Program Files\Update Services\Tools\wsusutil.exe” postinstall CONTENT_DIR=E:\WSUS
    At line:1 char:55
    + … Program Files\Update Services\Tools\wsusutil.exe” postinstall CONTENT …
    + ~~~~~~~~~~~
    Unexpected token ‘postinstall’ in expression or statement.
    + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken

    What could I be doing wrong

  31. Howto Reinstall WSUS from Scratch (34)

    Stephen Wagner says:

    03/03/2022 at 2:51 AM

    Hi Kevin,

    Looks like you’re running it in PowerShell. You need to run it in a Command Prompt.

    Cheers,
    Stephen

Leave a Reply

FAQs

How do I recreate a WSUS database? ›

Reset WSUS SUSDB and Content folder
  1. Stop the WSUS Services.
  2. Create the SQL Script to backup the existing database then drop.
  3. Backup and Drop the database.
  4. Delete the database files.
  5. Delete the WSUS folder.
  6. Reconfigure WSUS SUSDB and Folders.

How do I fix WSUS? ›

Open SQL Server Management Studio and connect to your WSUS instance. Expand Management, right-click Maintenance Plans, and then select New Maintenance Plan. Give your plan a name. Schedule this task to run about 30 minutes after you expect your cleanup to finish running.

How do I manually clean up my WSUS server? ›

In the WSUS administration console, select Options, and then Server Cleanup Wizard. By default this wizard will remove unneeded content and computers that have not contacted the server for 30 days or more. Select all possible options, and then click Next.

How do I delete a WSUS internal database? ›

In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance. Expand Databases, right-click the database to delete, and then click Delete. Confirm the correct database is selected, and then click OK.

How do I recreate a WSUS content folder? ›

Delete or rename the content directory, then recreate it. Please note that this will not delete/rename if the two services mentioned above are still running. Rename the directory by running REN WSUS WSUS_old , or delete it by running DEL WSUS , then confirm All with “A”: Recreate the directory by running MKDIR WSUS .

How do I force a WSUS server to update? ›

Click Start -> Run. Then type wuauclt /detectnow. To refresh the client report on wsus use the parameter /reportnow.

How do I fix a corrupted Windows Update? ›

Reset Windows Update from Troubleshooter
  1. Open Settings on Windows 10.
  2. Click on Update & Security.
  3. Click on Troubleshoot.
  4. Click the “Additional troubleshooters” option.
  5. Under the “Get up and running” section, select the Windows Update option.
  6. Click the “Run the troubleshooter” button.
Jan 19, 2023

Why is my WSUS server not detecting client computers? ›

If you cannot get clients to appear on the Computers page in the WSUS console, it is almost always a problem with client self-update, which is the mechanism that WSUS uses to update the SUS client to the WSUS client (Automatic Updates) software.

How to repair Windows Update Agent Windows 10? ›

Repair a Windows Update Agent
  1. Log in to the Patch Manager Administrator Console as an administrator.
  2. In the navigation pane, expand Enterprise and select one or more computers. ...
  3. In the Actions pane, click Windows Update Agent Maintenance and Repair.
  4. In the dialog box, select one or more repair options. ...
  5. Click OK.

How do I manually clean windows update cleanup? ›

On the Disk Cleanup tab, select Windows Update Cleanup, and then click OK. Note By default, the Windows Update Cleanup option is already selected. When a dialog box appears, click Delete Files.

How do I do a full system cleanup? ›

Disk cleanup in Windows
  1. In the search box on the taskbar, type disk cleanup, and select Disk Cleanup from the list of results.
  2. Select the drive you want to clean up, and then select OK.
  3. Under Files to delete, select the file types to get rid of. To get a description of the file type, select it.
  4. Select OK.

What is the PowerShell command for WSUS cleanup? ›

The Invoke-WsusServerCleanup cmdlet performs the process of cleanup on a specified Windows Server Update Services (WSUS) server. This process has the same impact as running the Cleanup Wizard from within the WSUS Console application and allows the specification of the same options as parameters.

How do I reinstall Windows Internal Database? ›

1. Type Start PowerShell in the Command Prompt window to start Windows PowerShell. 2. Type Install-WindowsFeature Windows-Internal-Database and press Enter to install Windows Internal Database.

Where is the WSUS database located? ›

When the internal database is installed, the data files and log files of the internal database are created on C:\WID location. In our case, the data files and log files of WID are created on C:\WID\data directory. The internal database is created while configuring the WSUS server.

How do I delete all updates from WSUS? ›

You cannot delete updates from WSUS. You can however decline update directly in WSUS. This will cause ConfigMgr to mark the update as expired and if the update is not deployed, ConfigMgr will remove the update after 7 days. This is actually what WSUS Automated Maintenance (WAM) does with declined updates, and Drivers.

How do I manually add WSUS to my computer? ›

In the WSUS Administration Console, under Update Services, expand the WSUS server, expand Computers, right-click All computers, and then select Add Computer Group. In the Add Computer Group dialog, for Name, specify the name of the new group. Then select Add.

Is there a replacement for WSUS? ›

A reliable WSUS replacement is ManageEngine Patch Manager Plus - a standalone patch management solution offering patches for Windows, macOS and Linux as well as 850+ third-party applications.

Where is WSUS content stored in registry? ›

If configured correctly, all these locations should point to the same path.
  1. In the registry on the WSUS server, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Update Services\Server\Setup:ContentDir.
  2. In IIS > Sites > WSUS Administration > Content.

How do I start WSUS service from command line? ›

Running WSUSutil.exe. WSUSutil.exe is a tool that you can use to manage your WSUS server from the command line. WSUSutil.exe is located in the %drive%\Program Files\Update Services\Tools folder on your WSUS server.

How do I force Windows 10 to update from WSUS? ›

Open the command prompt, by hitting the Windows key and type “cmd”. Right click on the Command Prompt icon and choose “Run as administrator”. 3. In the command prompt type (but, don't hit enter) “wuauclt.exe /updatenow“ (this is the command to force Windows to check for updates).

Why is WSUS not synchronizing? ›

If the BITS service was disabled during synchronization, synchronization will fail. To ensure that the BITS services is properly enabled, restart both the BITS service and the WSUS service. On the WSUS server, click Start, point to Administrative Tools, and then click Services.

How do I manually reinstall Windows updates? ›

Select Start > Control Panel > Security > Security Center > Windows Update in Windows Security Center. Select View Available Updates in the Windows Update window. The system will automatically check if there's any update that need to be installed, and display the updates that can be installed onto your computer.

What does DISM command do? ›

Deployment Image Servicing and Management (DISM) is a command-line tool that is used to service Windows images. You can use DISM image management commands to mount and get information about Windows image (. wim) files, Full-flash utility (FFU) files, or virtual hard disks (VHD).

How do I manually reset Windows Update components? ›

Reset Windows Update components manually
  1. Open a Windows command prompt. ...
  2. Stop the BITS service, the Windows Update service and the Cryptographic service. ...
  3. Delete the qmgr*.dat files.
Sep 2, 2022

How do I test my WSUS server connectivity? ›

To verify the server version, follow these steps:
  1. Open the WSUS console.
  2. Click the server name.
  3. Locate the version number under Overview > Connection > Server Version.
  4. Check whether the version is 3.2. 7600.283 or a later version.
Oct 28, 2022

How do I push update from WSUS server to client manually? ›

To approve and deploy feature updates manually

In the WSUS Administration Console, go to Update Services\Server_Name\Updates. In the Action pane, click New Update View. In the Add Update View dialog box, select Updates are in a specific classification and Updates are for a specific product.

How do I know if my client is connected to WSUS? ›

Take a look under Computer Configuration > Administrative Templates > Windows Components > Windows Update . You should see the keys WUServer and WUStatusServer which should have the the locations of the specific servers.

Can DISM fix Windows Update? ›

For example, an update might not install if a system file is damaged. The DISM or System Update Readiness tool may help you fix some Windows corruption errors. Check this page for Windows Update troubleshooting scenarios.

Should I run DISM or SFC first? ›

Run SFC first, and only if SFC finds a problem is it necessary to run DISM. Run SFC first, and — no matter what SFC reports — you might as well run DISM after that.

How do I reset Windows Update components in PowerShell? ›

Resetting Windows Update Client Using PowerShell

You can use the PSWindowsUpdate PowerShell module to reset the Windows Update agent and service. The Reset-WUComponents command stops services, re-registers DLLs, and cleans up the C:\Windows\SoftwareDistribution folder, etc. The full log of actions is available.

Can C :\ Windows Installer be cleaned up? ›

The C:\Windows\Installer folder contains Windows installer cache, it's used to store important files for applications installed using the Windows Installer technology and should not be deleted. The installer cache is used to maintain (remove / update) the applications and patches installed on the computer.

How do I do a deep clean in CMD? ›

Click Start, and then click Run. In the Open box, type the following command, and then press Enter: c:\windows\SYSTEM32\cleanmgr.exe /dDrive Note In this command, the placeholder Drive represents the drive letter of the hard disk to be cleaned.

What is cleaning up in update? ›

What Is Windows 10 Update Cleanup? Windows 10 update cleanup is a concept of Windows cleanup tool removes unnecessary files for you including temporary files, offline files, old Windows files, Windows update logs, etc.

What is the best way to clean system unit? ›

Use an anti-static cloth to lightly dust your computer casing. Do not use furniture cleaners or strong solvents. Use a can of compressed air to blow out debris from the air intake slots. Ammonia diluted with water—or glass cleaner comprised mostly of ammonia and water—is a safe cleaning solution for computer surfaces.

How do I wipe my computer clean and install everything new? ›

To reset your PC, go to Start > Settings > Update & Security > Recovery > Reset this PC > Get Started.

Does Windows 10 have a system cleaner? ›

Windows 10 has a feature built into the Disk Cleanup tool called Clean Up System Files that not many people take full advantage of.

How to manage WSUS server using PowerShell commands? ›

How to work with the WSUS PowerShell module
  1. Connecting to a WSUS server. The first task to do with PoshWSUS is to connect to an existing WSUS server so you can run cmdlets against it. ...
  2. View the WSUS clients. ...
  3. How to manage Windows updates. ...
  4. Syncing WSUS with Microsoft's servers. ...
  5. Performing cleanups.
Sep 27, 2019

Can I use CMD commands in PowerShell? ›

The executables can be run from any command-line shell, like PowerShell. This includes script files that may require other shells to work properly. For example, if you run a Windows batch script ( . cmd file) in PowerShell, PowerShell runs cmd.exe and passes in the batch file for execution.

What is clean command in CMD? ›

The command that erases the drive during this process is "Clean". In this article "Clean" and erase are used interchangeably. Cleaning or erasing a storage device removes all data and partitions from the drive.

How do I restore my entire database? ›

A. Restore a full database backup
  1. In Object Explorer, connect to an instance of the SQL Server Database Engine and then expand that instance.
  2. Right-click Databases and select Restore Database...
  3. On the General page, use the Source section to specify the source and location of the backup sets to restore.
Dec 16, 2022

Do you need SQL for WSUS? ›

WSUS must be setup using the SQL database option instead of WID. If storing updates locally, the same Content folder must be shared between the WSUS servers that are sharing the same SQL database.

How do I recover my WSUS database? ›

To restore the WSUS database

On your WSUS server, click Start, and then click Run. In the Open box, type %systemdrive%\%windir%\system32\ntbackup.exe and then click OK. In the Backup or Restore Wizard, click Next. Click Restore files and settings, and then click Next.

How do I clean up my WSUS database? ›

Open SQL Server Management Studio and connect to your WSUS instance. Expand Management, right-click Maintenance Plans, and then select New Maintenance Plan. Give your plan a name. Schedule this task to run about 30 minutes after you expect your cleanup to finish running.

What is the default database name for WSUS? ›

Database Permissions

Verify that the Default database is set to SUSDB. Click OK to save settings.

How do I manually uninstall WSUS updates? ›

To manually decline WSUS updates from your server, find the update you wish to remove and right click it and choose Decline. Once the update is manually declined, you would need to run the Server Cleanup Wizard (SCW) and allow it to clean out the space used by the declined update(s).

How do I manage Windows updates without WSUS? ›

6 Best Microsoft WSUS Alternative Patch Management Tools
  1. SolarWinds Patch Manager.
  2. ManageEngine Patch Connect Plus.
  3. Kaseya VSA.
  4. PDQ Deploy.
  5. Ivanti PatchLink.
  6. BatchPatch.
Feb 24, 2020

How do I uninstall all system updates? ›

Android 9
  1. Find and tap Settings → Apps & notifications → See all [number of apps] apps.
  2. Tap the Menu icon (three vertical dots) → Show system.
  3. Find and tap Software update.
  4. Tap Storage → CLEAR DATA.
Nov 7, 2022

How do I reindex my WSUS database? ›

Steps to Reindex WSUS Database
  1. Launch the SQL Server Management Studio.
  2. Connect to Database engine with your credentials.
  3. Expand Databases, right-click SUSDB and select New Query.
Apr 13, 2022

How do I reindex an entire database? ›

SQL Server Management Studio
  1. In Object Explorer, Expand the database that contains the table on which you want to reorganize an index.
  2. Expand the Tables folder.
  3. Expand the table on which you want to reorganize the indexes.
  4. Right-click the Indexes folder and select Reorganize All.

How do I create an anew database? ›

To create a database

Right-click Databases, and then select New Database. In New Database, enter a database name. To create the database by accepting all default values, select OK; otherwise, continue with the following optional steps. To change the owner name, select (...) to select another owner.

How do I overwrite an existing database? ›

Select Options from the left panel. Then, on the right panel, under the Restore options section, select the checkbox saying “Overwrite the existing database” to replace or overwrite the existing database.

When should you reindex a database? ›

If an index contains less than 100 pages, I will perform no maintenance. If an index is between 10% and 30% fragmented, I will REORGANIZE the index and UPDATE the statistics. If an index is over 30% fragmented, I will REBUILD the index - with no UPDATE STATISTICS , as this is taken care of by the REBUILD .

How do I fix WSUS not yet reported? ›

From Endpoint
  1. Check Automatic Update Service. First, make sure the Automatic Update service is running. ...
  2. Check Firewall. Try to access the WSUS server via the browser over port 8530. ...
  3. Check Windows Update Agent. ...
  4. Check Windows Update Log. ...
  5. Other Ideas. ...
  6. Use JetPatch Scripts. ...
  7. Totally reset WindowsUpdate on the client:

What is the difference between Reorg and rebuild index? ›

REORGANIZE is an online operation that defragments leaf pages in a clustered or non-clustered index page by page using little extra working space. REBUILD is an online operation in Enterprise editions, offline in other editions, and uses as much extra working space again as the index size.

What is the purpose of reindex? ›

REINDEX rebuilds an index using the data stored in the index's table, replacing the old copy of the index. There are several scenarios in which to use REINDEX : An index has become corrupted, and no longer contains valid data.

What does reindex () do? ›

The reindex() method allows you to change the row indexes, and the columns labels. Note: The values are set to NaN if the new index is not the same as the old.

Is it easy to create a database? ›

Most database systems make it very easy to create a database via a user interface. Generally, it's just a matter of selecting an option from a menu, then providing a name for your database. The following example demonstrates how to create a database in Microsoft Access.

Is it possible to recover data after overwriting? ›

Yes—you can recover a previous version of an overwritten file using the File History feature in Windows, or the Time Machine tool in MacOS, if they have already been enabled on your device.

What is the key command for overwrite? ›

In Microsoft Word this is accomplished by pressing, often accidentally, the INS (Insert) key. This key is very close to the backspace key on a standard keyboard. The current status of the Overtype mode is indicated by the letters OVR on Word's Status Bar.

Is overwrite and replace the same? ›

overwrite verb (REPLACE)

If you overwrite a computer file, you replace it with a different one. Want to learn more?

Videos

1. Step by Step : Installing & Configuring WSUS in Server 2012 R2
(MSFT WebCast)
2. HOW TO INSTALL WSUS ON SERVER 2022 - VIDEO 21 INFOSEC PAT
(InfoSec Pat)
3. How to Install WSUS for Configuration Manager
(Prajwal Desai)
4. Install and Configure WSUS in Windows Server 2012 R2
(MSFT WebCast)
5. Windows Server 2022: Install, Configure, and Deploy Windows Server Update Services (WSUS)
(SW The Tech Journal)
6. Installing the WSUS Role (Windows Server Update Services)
(Server Academy)
Top Articles
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated: 11/13/2022

Views: 6133

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.