As an edit to the above post. I did some more testing with user accounts and accounts that are in the csv file and they all are removed. I believe mine would be too if I wasn't logged into the computer.
Thanks for the quick response. Sorry It took me a while to get back to you, I had gone on vacation the next day. So I fixed my code to what it is below. It actually runs! The problem now is that it gives a bunch of popups from WSH with the usernames in it. If I block out the last For loop...
Hey everyone,
So I'm a novice coder, I'm basically merging a script and a code snippet. The script is meant to remove all user profiles minus those within the exclusion list. There is another way to add to the exclusion list, which is by running a batch file with a switch and list of users...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.