Answer the question
In order to leave comments, you need to log in
How to become the owner of a registry branch and delete it?
Colleagues, there is a need to delete the registry branch: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AlternateShells on many servers. But first, you need to become the owner of this branch and give the administrator group full rights to this branch. I'm trying to "muddle" a batch file:
subinacl.exe /subkeyreg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AlternateShells" /setowner=Administrators /grant=Administrators=f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AlternateShells /f
Answer the question
In order to leave comments, you need to log in
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsQuotes and the root as already indicated.
Is the subinclusion installed?
Well, just after that, some branches have strictly defined permissions, and for each nested branch they have their own even if they are the same (for example, not inherited or the owner is the system), so you need to become the owner several times, including for each nested branch. If this is done from the registry editor, for example, then you have to enter each previously inaccessible branch, then go up and set yourself the owner of the branch and all nested ones again, sometimes 5 times.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question