The script helps us to check and delete all delegated permission of the user.
As we know, there isn’t a delete delegated permission wizard in Windows Server. If we want to delete all delegated permission and restore users’ permission to default, we have to use ADUC and other tools such as Dsrevoke to check and delete each user’s permission manually. Once we have the script, we could reduce a lot of work.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery