Script to fix windows update.

Dinesh Negi 66 Reputation points
2022-10-19T10:58:31.117+00:00

Hello Everyone,

Do you guys have any script /or batch file . If any issue arise for particular patch and that script can either fix the corruption or by pass the that particular patch and install other remaining patches instead of roll back either it can generate the log which patch is causing the issue, Please don't say use DISM /or windowslog

Thanks for your help

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,178 questions
Windows Server Migration
Windows Server Migration
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Migration: The process of making existing applications and data work on a different computer or operating system.
408 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,381 questions
0 comments No comments
{count} votes

9 answers

Sort by: Newest
  1. Dave Patrick 426.1K Reputation points MVP
    2022-11-03T00:03:46.763+00:00

    There is no magic bullet. You can follow along here.
    https://support.microsoft.com/en-us/topic/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094e

    In most cases when windows servicing becomes broken, you'll be far better off to clean install it, patch fully, migrate roles over and move on.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Dinesh Negi 66 Reputation points
    2022-11-02T23:58:03.937+00:00

    My question is what exactly have refer on those logs. what is the best way to find out the culprit patch number

    0 comments No comments

  3. Dave Patrick 426.1K Reputation points MVP
    2022-11-01T23:39:50.627+00:00

    Check the contents of the \windowsupdate.log, \cbs.log files for clues.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  4. Dinesh Negi 66 Reputation points
    2022-11-01T23:30:14.86+00:00

    Thanks!

    Some time I have seen old patch is causing an issue for any new role or features or patch installation What is the best way to find out the issue

    0 comments No comments

  5. Dave Patrick 426.1K Reputation points MVP
    2022-10-21T23:28:02.493+00:00

    It may be possible, but there's nothing canned for this. You may need to write your own.

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments