Prajwal Desai

SCCM | ConfigMgr | Intune | Windows 11 | Azure

  • Home
  • Cloud
    • Autopilot
    • Azure
    • Endpoint Analytics
    • Intune
    • PowerShell
    • Teams
    • Windows 365
  • Microsoft
    • Active Directory
    • Group Policy
    • SCCM
    • SCOM
    • Windows 10
    • Windows 11
    • Windows Server
    • WSUS
  • Software
  • Forums
  • Newsletter
  • Contact
Notification Show More
Latest News
Fix Windows Autopilot Reset Error 0x80070032
Fix Windows Autopilot Reset Error 0x80070032
Autopilot Intune
Windows activation error 0xc004c020
Fix: Windows Activation Error 0xC004C020 with 2 Easy Methods
Windows 11 Windows 10
Find the Package ID of SCCM Application
3 Best Ways to Find the Package ID of SCCM Application
SCCM
SCCM Updates Install Error 0x800b0109 0x8024b303
Fix: SCCM Updates Install Error 0x800b0109 | 0x8024b303
SCCM
Disable Windows Hello for Business using Intune ftimg
Disable Windows Hello for Business using Intune – Comprehensive Guide
Intune Autopilot
Aa

Prajwal Desai

SCCM | ConfigMgr | Intune | Windows 11 | Azure

Aa
Search
  • Home
  • Cloud
    • Autopilot
    • Azure
    • Endpoint Analytics
    • Intune
    • PowerShell
    • Teams
    • Windows 365
  • Microsoft
    • Active Directory
    • Group Policy
    • SCCM
    • SCOM
    • Windows 10
    • Windows 11
    • Windows Server
    • WSUS
  • Software
  • Forums
  • Newsletter
  • Contact
Follow US

Home » Windows 10 » How To Delete User Account Using Command Line

Windows 10

How To Delete User Account Using Command Line

By Prajwal Desai 3 Views 4 comments February 2, 2021 2 Min Read

Delete User Account Using Command Line

In this short post we will see the steps on how to delete user account using command line. To delete a user account you can use the control panel and navigate to user accounts and delete the account or you can also delete user account using command line. Most of the users tend to do it using control panel. You can make use of net user command to create and modify user accounts on computers.

To delete user account using command line you must run Command Prompt as administrator and execute the below command. Please note that the below commands will work on Windows XP, Windows 7, Windows 8.1 and also on all Server editions. In case you see an error “system error 5 has occurred Access is denied” then it means that the user account that you are logged in with does not have administrator privileges on that computer. You must login with an user account that has administrative privileges on that computer.

The syntax for deleting a user account is :

net user username /delete

Where

- Advertisement -
Ad image

net user – Command to create and modify user accounts on computers.

username – This is the name of the user account.

/delete – Removes a user account from the user accounts database.

So if you have a user named Jason and if you want to delete user account using command line then your command would be net user Jason /delete.

Delete User Account Using Command Line

Sign Up For Weekly Newsletter

Get the most recent information on Configuration Manager, Intune, Windows 11, Windows 365, Autopilot, Azure, Software Reviews, and much more by subscribing to the newsletter.
By signing up, you agree and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share this Article
Facebook Twitter Copy Link Print
Avatar photo
By Prajwal Desai
Follow:
Prajwal Desai is a Microsoft MVP in Enterprise Mobility. He writes articles on SCCM, Intune, Configuration Manager, Microsoft Intune, Azure, Windows Server, Windows 11, WordPress and other topics, with the goal of providing people with useful information.
Previous Article IE10 Disable IE10 Automatic Update via Group Policy
Next Article ms os Get Windows OS Version using Command Line
4 Comments 4 Comments
  • Avatar photo Hector S says:
    May 29, 2022 at 2:08 am

    Hello, I factory reset my computer and I have a profile that stayed on my pc. I tried to login but it says user profile cannot be found so I want to delete it

    When I do the command line, and put in the profile name. It says “The syntax of this command is:

    NET USER
    [username [password | *] [options]] [/DOMAIN]

    username {password | *} /ADD [options] [/DOMAIN]

    username [/DELETE] [/DOMAIN]

    username [/TIMES:{times | ALL}]

    username [/ACTIVE: {YES | NO}]

    again all I want to do is delete this profile so I can finish the factory reset. PLEASE HELP, this is so frustrating

    Reply
  • Avatar photo DJ says:
    March 17, 2021 at 1:25 am

    This stuff works all well and fine until you realize your trashing and leaving profile information in the registry

    Reply
  • Avatar photo Prajwal Desai says:
    March 5, 2015 at 7:24 pm

    Hi Sunil, if you are really looking to become System admin, i would say start with basics like A+, N+ modules and once you are confident go ahead and learn about windows servers. You need to work on servers to get the knowledge on it.

    Reply
  • Avatar photo Sunil Bhat says:
    March 4, 2015 at 1:08 pm

    Good afternoon sir i m sunil bhat working in it sector .sir i want to choose microsoft system administrator as a career. Plz ģuide me wat is the basic level to become system administrator. Which certification i have to do and where in delhi area.
    with regards
    sunil bhat

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recast Sponsored AD
Ad image
Patch My PC Sponsored AD
Ad image

Latest Articles

Fix Windows Autopilot Reset Error 0x80070032
Fix Windows Autopilot Reset Error 0x80070032
Autopilot Intune
Windows activation error 0xc004c020
Fix: Windows Activation Error 0xC004C020 with 2 Easy Methods
Windows 11 Windows 10
Find the Package ID of SCCM Application
3 Best Ways to Find the Package ID of SCCM Application
SCCM
SCCM Updates Install Error 0x800b0109 0x8024b303
Fix: SCCM Updates Install Error 0x800b0109 | 0x8024b303
SCCM
Subscribe to Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

You Might Also Like

Windows activation error 0xc004c020
Windows 11Windows 10

Fix: Windows Activation Error 0xC004C020 with 2 Easy Methods

By Prajwal Desai
Show Performance button on Toolbar in Microsoft Edge
Windows 11Windows 10

Show Performance button on Toolbar in Microsoft Edge

By Prajwal Desai
Prevent Changes to Taskbar and Start Menu Settings
Windows 11Group PolicyWindows 10

Prevent Changes to Taskbar and Start Menu Settings using GPO

By Prajwal Desai

Removed from reading list

Undo
Welcome Back!

Sign in to your account

Lost your password?