Delete Multiple Windows Accounts by using CMD

Is there a way to achive so? I usually test on my computer different CMD commands with different privileges, so I create many users (I know that I can change the privileges by using net user but I prefer to do so this way). I was thinking about a variable like %allusers% or something like that to delete all users and create a new only one, like this:

net user %allusers% /del & net user "USERNAME" /add

or

net localgroup users %allusers% /del

Basically I want to delete or change privileges from window's users by a variable like %allusers%.

8

1 Answer

Solved by TwistyImpersonator

No, it is not possible to delete multiple accounts or all windows accounts. You have to log into each account deleting them 1 by 1 using the command:

Net User "%username%" /DEL

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like