The below command :
net user Test /delete
only delete the user which is not enough.
Easy:
rd /s /q "C:\Users\UserName"
Please remember to mark my reply by clicking "Did this solve your problem?".
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have windows 10 machines with several users on it.
I want to delete these user via CMD or Powershell with all their folders (desktop, download, ........etc)
The below command :
net user Test /delete
only delete the user which is not enough.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
The below command :
net user Test /delete
only delete the user which is not enough.
Easy:
rd /s /q "C:\Users\UserName"
Please remember to mark my reply by clicking "Did this solve your problem?".
It should be the top command, does it give any error message when you try to do this?
Kind Regards,
Elise
yes it is giving me the attached screenshot error in my previous reply
I used the first command because you missed the S letter in user
please try it on your computer first
Ah ok sorry I didn’t see your screenshot, you will likely need to take ownership of the folder first:
https://www.apeswithcomputers.com/article/take-...
Kind Regards,
Elise
thank you Elise,
I prefer Frederik Long command