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" /addor
net localgroup users %allusers% /delBasically I want to delete or change privileges from window's users by a variable like %allusers%.
81 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