Script to remove local admin

Would love a script to remove local admin privileges from all domain users (except domain admins). When onboarding companies it seems often that the old IT team has given local admin to pretty much everyone. After explaining to new management why this is a bad idea, it is usually approved to have local admin removed for everyone, so a script to do it would be awesome.

Hi @indieserve,

Sure, we will analyze it and let you know the status as soon as possible.

Thank you.

Hi @indieserve

Please refer below procedure for your request.

Let us know your feedback.