Challenge Logic

I have a challenge for the teacher and need some help to come up with logic.
What is a Windows environment with multiple users created by taking the User X all others need to be removed. Searching in Regedit seen that users are in:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\

Only in it for several inputs and the User name is in the variable:


I will use this tutorial as a basis for working with the registry:

But I have no idea how to remove all users unless the user X, one would have any idea?
Run a search for "delete users WINAPI" on your Internet browser. I can't search in Portuguese, but I did find an English version of your question, and they give 2 common ways to do what you want;
Last edited on
Topic archived. No new replies allowed.