How to create a new user account using command prompt?

How to create a new user account using Command Prompt?

This tutorial describes how to create a new user account in the Windows operating system using Command Prompt. The guide is helpful when dealing with ransomware or fake antivirus programs that block Safe Mode and Safe Mode with Networking. Cyber criminals responsible for developing malicious programs develop new methods to protect their bogus software from elimination - this includes blocking users' access to Safe Mode.

When dealing with security threats such as these, it is advisable to log out of the infected user account and run a security scan from an unaffected account. This, however, is only possible if your operating system has multiple active user accounts. If you computer is infected with a ransomware infection, and you cannot create a new user account using Control Panel, then use the following instructions:

1. Start your computer in Safe Mode with Command Prompt. During your computer start process, press the F8 key on your keyboard multiple times until the Windows Advanced Options menu appears, then select Safe mode with Command Prompt from the list and press ENTER.

Boot your computer in Safe Mode with Command Prompt

2. When Command Prompt Mode loads, enter the following line: net user removevirus /add and press ENTER.

net user removevirus /add

3. Next, enter this line: net localgroup administrators removevirus /add and press ENTER.

creating new user using command prompt

4. Finally, enter this line: shutdown -r and press ENTER.

adding a new user in command prompt

5. Wait for your computer to restart, then boot your PC in Normal Mode and login to the newly-created user account ('removevirus'). This account will be unaffected by security infections and you will be able to download and install security software.

new user account win 7 and win xp

6. Use recommended malware removal software for detection and removal any security-related issues from your computer.

Note that some fake antivirus programs and ransomware infections are capable of infecting other user accounts on a system, so this method may not always work.

▼ Show Discussion

About PCrisk

PCrisk is a cyber security portal, informing Internet users about the latest digital threats. Our content is provided by security experts and professional malware researchers. Read more about us.

Malware activity

Global malware activity level today:

Medium threat activity

Increased attack rate of infections detected within the last 24 hours.