Giter VIP home page Giter VIP logo

anti10016's Introduction

Anti10016

This is a powershell script to attempt fix DCOM 10016 errors.

It is quite a common issue, when you for some reason go to event viewer and see lots of events with ID 10016. While Microsoft suggests ignoring them, treating them as "no issue", they, at least, can clog up the logs, which is not good. Common solution for that is this one. Obviously it's manual.
The scripts commonly found as promoted fixes are gists from kitmenke and Parahexen, but they are far from perfect. kitmenke's solution, in the end, only covers taking ownership and Parahexen uses HKCR hive, which may provide unexpected results when setting values in it as mentioned here (and also can have quite a lot of potentially unneeded output, including errors, that are not exactly errors).

And here comes this script. It's based on the work done by the others, but has some distinctions:

  1. Uses HKLM and HKCU hives instead of HKCR hive
  2. Grants access to DCOM not only to all SIDs mentioned in the error (it looks like 2 values can be provided) plus SYSTEM, LOCAL SERVICE and Built-In Administrators Group
  3. It does validate the expected SID values, that they are SIDs
  4. In case AppID path is missing LaunchPermissions value, it will be created
  5. All events are parsed, but there is a "tracking" logic, that will avoid processing same even twice (or more), which can improve performance
  6. Some other changes to potentially improve performance (enabling privileges outside of the function does seem to result in errors on following iterrations, so no improvement there)
  7. Cleaner (and color-coded) output

If you have this issue - download the file and run it in PowerShell.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.