Skip to content

Instantly share code, notes, and snippets.

@Parahexen
Parahexen / 10016.ps1
Created July 20, 2017 01:23
Powershell script to solve all windows '10016' event error.
# ================================================================
# by K
# Thanks to:
# https://gist.github.com/kitmenke/3213d58ffd60ae9873ca466f143945f4
# https://hinchley.net/articles/changing-dcom-security-permissions-with-powershell/
# ================================================================
# To take ownership of a registry key:
# https://social.technet.microsoft.com/Forums/windowsserver/en-US/e718a560-2908-4b91-ad42-d392e7f8f1ad/take-ownership-of-a-registry-key-and-change-permissions?forum=winserverpowershell