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,954 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.
425 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,511 questions
0 comments No comments
{count} votes

9 answers

Sort by: Most helpful
  1. 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

  2. Anonymous
    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--


  3. 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

  4. Anonymous
    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--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.