Создание администратора windows через командную строку

Download Windows Speedup Tool to fix errors and make PC run faster

Generally, to create a new local administrator account for Windows 11/10, you must first sign in to Windows with an administrator or a regular user with administrative rights. However, occasionally, you may be unable to sign in to Windows for some reason, such as forgetting your password, losing administrator rights, or some other errors. This post will show you how to create a Local Administrator Account when you can’t sign in.

Create Local Administrator Account using CMD

Since you can’t sign in to Windows 11/10 and get to the desktop, you can’t open Command Prompt within Windows 11/10. However, you can fire up the CMD prompt from the Advanced Startup Options screen or the Sign-in screen with a Windows 11/10 installation media.

So, to create a local administrator account via Command Prompt on Windows 11/10 when you can’t sign in, do the following:

  • Boot your computer from a Windows installation media.
  • When the Windows Setup screen appears, press Shift + F10 to open the command prompt.
  • In the CMD window, run the commands below one after the other (hit Enter on each line) to replace the utilman.exe file with the cmd.exe file.

Note: C is the system drive letter.

move c:\windows\system32\utilman.exe c:\

copy c:\windows\system32\cmd.exe c:\windows\system32\utilman.exe
  • Now, run wpeutil reboot to restart the computer and disconnect the Windows installation media.

With the installation media disconnected, your computer will restart normally. When you reach the Windows sign-in screen, click the Ease of Access icon in the lower right corner of the screen. This would open a command prompt if the previous steps went right.

  • Now. you can create a new administrator account for Windows 10 by running the following two command lines one after the other. Replace UserName placeholder with the user name you want.
net user UserName /add

net localgroup administrators UserName /add

After a few seconds, the newly created administrator account will be displayed in the lower-left corner of the sign-in screen and you can use it to sign in to Windows 11/10.

Read: How to login as an Administrator in Windows.

Now, after you have successfully created the administrator account, you should restore the utilman.exe file. If not, you won’t be able to use the Utility Manager (Ease of access) on Windows 11/10 sign-in screen, and on the other hand, others might use the command prompt to change your Windows admin password or make other changes to your computer. To restore the utilman.exe file, do the following:

  • Boot your computer from the Windows installation media again.
  • When the Windows Setup screen appears, press Shift + F10 to open the command prompt.
  • Type the command below and hit Enter.
move c:\utilman.exe c:\windows\system32\utilman.exe
  • When the Overwrite c:\windows\system32\utilman.exe? prompt appears, type Yes, and press Enter.
  • Remove the installation media and restart the computer.

Once you get to the sign-in screen, you will see the newly created administrator account – you can click on the account to sign in to your Windows 10 device.

And that’s it on the two ways to create a Local Administrator Account on Windows 11/10 when you can’t sign in!

Related post: Create Hidden Administrator User Account In Windows.

How do I make my account a local account?

If you have a Microsoft-connected account on your Windows PC, you can make it a local account. Go to the account profile and click on Sign in with a local account instead. It will open a popup that will notify what will happen with the changes, i.e., no personalization settings, no sync across multiple devices, and so on. If you do not use Microsoft Store or any other connected service, you can use the PC with a local account, which should work the usual way.

Read: How to get list of Local Administrators on Windows computer

Does Windows have a built-in administrator account?

Yes, Windows has a built-in administrator account. This is a special user account that has full access to the system and can make any necessary changes. The administrator account is disabled by default in most versions of Windows, but it can be enabled if needed. That said, it’s best not to enable it unless you don’t have a choice. If your admin account has been disabled or corrupt, and you need to create another account, then you can use the recovery method and activate the Hidden admin account from the command prompt.

Obinna has completed B.Tech in Information & Communication Technology. He has worked as a System Support Engineer, primarily on User Endpoint Administration, as well as a Technical Analyst, primarily on Server/System Administration. He also has experience as a Network and Communications Officer. He has been a Windows Insider MVP (2020) and currently owns and runs a Computer Clinic.

Reader Interactions

Все способы:

  • Способ 1: Приложение «Параметры»
  • Способ 2: Оснастка управление пользователями
  • Способ 3: Командная строка
  • Способ 4: Активация скрытого Администратора
  • Способ 5: Специальные утилиты
  • Вопросы и ответы: 1

Создать учетную запись администратора может только тот пользователь, который уже имеет администраторские права в системе. Если таковые отсутствуют, для создания администратора придется использовать обходные решения, о которых будет сказано ниже.

Способ 1: Приложение «Параметры»

Наиболее очевидным способом создания администратора в Windows 10 является использование соответствующего инструмента в приложении «Параметры».

  1. Откройте приложение «Параметры», перейдите в раздел в «Учетные записи»«Семья и другие пользователи» и нажмите в блоке «Другие пользователи» ссылку «Добавить пользователя для этого компьютера».
  2. Как создать администратора в Windows 10-1

  3. Откроется окошко создания учетной записи, в котором будет предложено ввести данные для входа в учетную запись Microsoft . Если нужно создать локального администратора, нажмите ссылку «У меня нет данных для входа этого человека».
  4. Как создать администратора в Windows 10-1-2.png

  5. Подтвердите добавление пользователя без учетной записи Microsoft нажатием в следующем окне указанной ссылки.
  6. Как создать администратора в Windows 10-3

  7. Присвойте локальному пользователю имя, пароль, ответьте на контрольные вопросы и нажмите кнопку «Далее».
  8. Как создать администратора в Windows 10-4

  9. В результате в разделе «Семья и другие пользователи» появятся новая учетная запись. Кликните по ней, нажмите кнопку «Изменить тип учетной записи».
  10. Как создать администратора в Windows 10-5

  11. Выберите из выпадающего списка тип учетной записи «Администратор» и сохраните настройки.
  12. Как создать администратора в Windows 10-6

Способ 2: Оснастка управление пользователями

Создать администратора в Windows 10 можно также с помощью встроенной оснастки управление пользователями.

  1. Откройте оснастку «Локальные пользователи и группы», для чего выполните команду lusrmgr.msc в диалоговом окошке, вызванным нажатием комбинации клавиш Win + R.
  2. Как создать администратора в Windows 10-7

  3. Кликните правой кнопкой мыши в средней колонке оснастки и выберите опцию «Новый пользователь».
  4. Как создать администратора в Windows 10-8

  5. Введите данные нового пользователя: имя и пароль (этого будет достаточно), также снимите флажок с чекбокса «Требовать смены пароля при следующем входе в систему», после чего нажмите кнопку «Создать». Содержимое полей окошка будет автоматически очищено, после чего его можно будет закрыть.
  6. Как создать администратора в Windows 10-9

  7. Откройте свойства созданной учетной записи из контекстного меню или двойным по ней кликом. Переключитесь на вкладку «Членство в группах» и нажмите кнопку «Добавить».
  8. Как создать администратора в Windows 10-10

  9. В открывшемся окошке выбора группы введите в поле имен выбираемых объектов «Администраторы» и нажмите «OK».
  10. Как создать администратора в Windows 10-11

  11. Сохраните настройки.
  12. Как создать администратора в Windows 10-12

Способ 3: Командная строка

Еще одним вариантом создания администратора Windows 10 является использование классической «Командной строки». Процедура состоит из двух частей: создание пользователя и перемещение его в группу администраторов.

  1. Откройте «Командную строку» с повышенными привилегиями из поиска Windows или другим известным способом.
  2. Как создать администратора в Windows 10-13

  3. Введите и выполните две следующих команды:
    • net user UserName Pass /add, где UserName – имя пользователя, а Pass – это пароль.
    • net localgroup "Администраторы" UserName /add, где UserName – имя пользователя.
    • Как создать администратора в Windows 10-14

В результате выполнения этих двух команд в системе появится новый пользователь, состоящий в группе «Администраторы» и в группе «Пользователи».

Способ 4: Активация скрытого Администратора

Пользователи, уже обладающие администраторскими правами, могут активировать в Windows 10 встроенную учетную запись Администратора через «Командную строку» либо «PowerShell».

  1. Откройте ту или иную консоль от имени администратора из контекстного меню кнопки «Пуск».
  2. Как создать администратора в Windows 10-15

  3. Выполните команду net user Администратор /active:yes.
  4. Как создать администратора в Windows 10-16

  5. Выйдите из системы и войдите в нее с уже активированной учетной записью.

Способ 5: Специальные утилиты

Если права администратора отсутствуют изначально, для создания администратора в Windows 10 придется действовать в обход. Создать пользователя с администраторскими правами можно с помощью утилиты OO User Manager, входящей в состав спасательного диска WinPE 10-8 Sergei Strelec.

Скачать WinPE 10-8 Sergei Strelec с официального сайта

В настоящее время главная страница сайта разработчика отключена, ресурсы для загрузки инструмента можно найти на странице печати по ссылке-кнопке выше либо скачать диск из свободных источников в интернете.

  1. Скачав ISO-образ спасательного диска, запишите его на флешку с помощью Rufus или аналогичной программы.
  2. Подробнее:
    Как пользоваться Rufus
    Программы для создания загрузочной флешки

  3. Когда загрузится рабочий стол, выберите в меню «Пуск» пункт «Программы WinPE »« Сброс паролей»«OO User Manager».
  4. Как создать администратора в Windows 10-17

  5. Нажмите «OK» в окошке с сообщением о создании бэкапа пользовательской базы данных.
  6. Как создать администратора в Windows 10-18

  7. В главном окне программы нажмите в левой колонке «Создать» и укажите имя и пароль для создаваемого администратора. Нажмите кнопку «Создать».
  8. Как создать администратора в Windows 10-19

  9. Появится предложение добавить созданного пользователя в группу. Нажмите «OK».
  10. Нажмите «OK» в диалоговом окошке с предупреждением о невозможности изменения пароля.
  11. После этого созданный пользователь станет доступным в списке других учетных записей. Кликните по нему правой кнопкой мыши и выберите из контекстного меню опцию «Свойства».
  12. Как создать администратора в Windows 10-22

  13. Переключитесь в открывшемся окошке на вкладку «Членство в группах» и нажмите «Добавить».
  14. Как создать администратора в Windows 10-23

  15. Выделите в появившемся списке группу «Administrators» и нажмите кнопку добавления группы, чтобы она оказалась в нижнем поле. Нажмите «Добавить».
  16. Как создать администратора в Windows 10-24

  17. Сохраните результаты нажатием «Применить» и «OK».

Готово, можно загружать компьютер в обычном режиме. В результате на экране входа в систему должен появиться новый пользователь с администраторскими правами.

Наша группа в TelegramПолезные советы и помощь

In this tutorial, you will learn how to use the net user command to create, delete and change user accounts in the Windows command prompt (CDM).

We can perform the following tasks using the net user command:

  • View user accounts.
  • Add and Remove user accounts.
  • Activate and Deactivate user accounts.
  • Change the user password.

If you are operating in an Active Directory domain environment, always use the /domain command switch to execute the net user command on the domain controller rather than on the local computer.

Examples

List users on the local computer:

net user

List users on the domain controller:

net user /domain

This command displays detailed information about the Administrator account:

net user Administrator

Create a user named user1 with a password of strongPassword:

net user /add user1 "strongPassword"

Delete the user user1 from the computer:

net user /delete user2

This command enables the built-in Administrator account on Windows 10/11:

net user Administrator /active:yes

This command sets (changes) the Administrator account password:

net user Administrator "adminPassWord"

Execute the following command to disable the Administrator account on Windows 10/11:

net user Administrator /active:no

This command forces the user user1 to change the password at the next logon:

net user user1 /logonpasswordchg:yes

Create a user; the user must change the password at the next logon:

net user /add user1 "strongPassword" /logonpasswordchg:yes

Create a new user; the account expires on January 31st:

net user /add user1 "strongPassword" /expires:01/31/2023

Command Options

username The name of the user to create, delete, view, or modify.
password Password for the user.
* Use this option to produce a prompt for the password.
/add Use this option when you want to create a new user.
/delete Use this option to remove a user from the Windows system.
/active:{yes | no} Activates or Deactivates a user. The default is yes when creating a new user.
/expires:{date | never} Use this option to set the expiration date (mm/dd/yy) for an account. The default is never.
/fullname:»name» Full name of the user.
/passwordchg:{yes | no} Specifies whether users can change their own password. The default is yes.
/passwordreq:{yes | no} No means the user can log in without a password. The default is YES.
/logonpasswordchg:{yes|no} Specifies whether the user should change the password at the next logon. The default is NO.
/homedir:path The home directory location.
/comment:»text» Use this option to add a description to the user’s account.

You can view the manual page by typing net help user at the command prompt.

View a User

When you execute the net user command without any options, it displays a list of user accounts on the computer.

net user

You will see an output similar to the following:

the net user command

Add the /domain command switch if you want to list users on the Active Directory Domain controller.

net user /domain

To see detailed information about a particular user, execute the command net user Username, where the Username is the name of the user you want to view. For example, you can view the Administrator account by running the following command:

net user Administrator

Create and Delete User Accounts

To create a user account, use the following syntax:

net user /add UserName Password

For example, the following command creates a user named user1 with a password of strongPassword:

net user /add user1 "strongPassword"

Use an asterisk (*) in place of the password to produce a prompt, as shown in the following example:

net user /add user1 *
net user change password

Change Password

Alternatively, you can also use the /random option to generate a strong random password, as shown in the following example:

net user /add user1 /random

The randomly generated password will be displayed on the command prompt after you execute the command.

Using Net User command to generate a strong random password

Using Net User command to generate a strong random password

To delete a user, use the following syntax:

net user /delete UserName

The following command deletes the user user1 from the computer:

net user /delete user2

Change Passwords

To change passwords, use the following syntax:

net user UserName New-Password

Use an asterisk (*) or /random in place of the password to produce a prompt or generate a random password:

net user UserName *
net user user1 /random

Notes

The net user command is most of the time used in Windows Server to manage Active Directory users.

Windows 10/11 uses a new Settings pane to manage users, but the net user command is still useful for some tasks. For example, if you want to activate the built-in Administrator account, it is easy to do that using this command.

While working at the command prompt, run the net help user command to see all available command options.

In the next tutorial, we are going to learn how to manage Windows groups using the net localgroup CMD command.

  • Home
  • Partition Magic
  • How to Create Administrator Account in Windows 10

By Amanda |
Last Updated

Do you know how to create administrator account in Windows 10? In this post, MiniTool software puts together 3 methods to help you create admin account. Keep reading to get the detailed instructions.

Commonly, a local user account will be created when you install Windows, and you will use this account to log into the computer later.

But sometimes, the administrative privileges are required when you are performing certain operations with this user account. So, you might want to create an administrator account and log in with it. Besides, creating another account with administrative rights is always a good solution to various Windows account issues.

How to create administrator account in Windows 10? Here’s the method!

Method 1: Create Administrator Account via Settings

This should be the most popular method to create admin account among ordinary users, as they can easily complete the operation all by themselves with the onscreen instructions. The detailed steps are as below.

Step 1: Press Windows + I to open Windows Settings app.

Step 2: Go to Accounts category.

Step 3: Choose Family & other users section from the left pane and click Add someone else to this PC in the right pane.

Add someone else to this PC

Step 4: Click I don’t have this person’s sign-in information in the pop-up window.

Step 5: Click Add a user without a Microsoft account.

Step 6: Enter a user name for the new account and assign a password as your needs. Click Next to continue.

enter username and password

Step 7: Now, you need to set the account to administrator type, because any new account is created as a standard one by default. To do that, click Change account type and choose Administrator from the list of Account type. Click OK to save the changes.

change account type

Method 2: Create Administrator Account via Command Prompt

Alternatively, you can create administrator account with certain command lines in Command Prompt, which is a rather simple method. Let’s have a closer look at this method.

Step 1: Press Windows + R to invoke Run dialog.

Step 2: Input cmd and press Ctrl + Shift + Enter to run Command Prompt as administrator.

Step 3: Input the following command lines and press Enter after each to execute them:

  • net user Amanda /add (to create a local user account with the given username)
  • net localgroup Administrators Amanda /add (to add the newly created account to the Administrator group)

Note: The Amanda here is the username I assign for the new account. You can replace it with your preferred name.

create admin account cmd

When the commands completed successfully, the new administrator account was also created successfully.

Method 3: Create Administrator Account via Local Users and Groups

Finally, you can also go to Local Users and Groups to create a new local administrator account. Just follow the steps below:

Step 1: After opening Run window, type lusrmgr.msc and click OK to enter the Local Users and Groups console.

Step 2: Right-click Users from the left pane and click New User.

Step 3: In the pop-up dialog, assign the username of the new account and enter password if needed. Click Create button.

Note: You can also choose to check or uncheck the below options about password and the account.

create admin account in Local Users and Groups

Step 4: The new account will be listed in the right pane. Double-click the account to open its Properties.

Step 5: Switch to the Member of tab and click Add. In the pop-up window, type Administrators in the empty box and click OK to add the new account to the administrator group.

add to the administrator group

Step 6: Click Apply and OK button to save the changes you have made just now.

Here’s all about how to create administrator account in Windows 10. After successfully creating a new administrator account, you can restart your computer or log off the current account to sign into the new account.

About The Author

Position: Columnist

Amanda has been working as English editor for the MiniTool team since she was graduated from university. She enjoys sharing effective solutions and her own experience to help readers fix various issues with computers, dedicated to make their tech life easier and more enjoyable.

Amanda has published many articles, covering fields of data recovery, partition management, disk backup, and etc. In order to provide more useful tips and information, she is still committed to expand her technical knowledge.

По умолчанию, учетная запись первого созданного пользователя в Windows 10 (например, при установке) имеет права администратора, однако последующие создаваемые учетные записи — права обычного пользователя.

В этой инструкции для начинающих пошагово о том, как дать права администратора создаваемым пользователям несколькими способами, а также о том, как стать администратором Windows 10, если у вас нет доступа к администраторской учетной записи, плюс видео, где весь процесс показан наглядно. См. также: Как создать пользователя Windows 10, Встроенная учетная запись Администратор в Windows 10.

Как включить права администратора для пользователя в параметрах Windows 10

В Windows 10 появился новый интерфейс для управления учетными записями пользователей — в соответствующем разделе «Параметров».

Чтобы сделать пользователя администратором в параметрах достаточно выполнить следующие простые шаги (эти действия должны выполняться из учетной записи, которая уже имеет права администратора)

  1. Зайдите в Параметры (клавиши Win+I) — Учетные записи — Семья и другие люди.
  2. В разделе «Другие люди» нажмите по учетной записи пользователя, которого требуется сделать администратором и нажмите кнопку «Изменить тип учетной записи». 
    Управление пользователями Windows 10

  3. В следующем окне в поле «Тип учетной записи» выберите «Администратор» и нажмите «Ок». 
    Сделать пользователя администратором в параметрах Windows 10

Готово, теперь пользователь при следующем входе в систему будет иметь необходимые права.

С использованием панели управления

Чтобы изменить права учетной записи с простого пользователя на администратора в панели управления выполните следующие шаги:

  1. Откройте панель управления (для этого можно использовать поиск в панели задач).
  2. Откройте пункт «Учетные записи пользователей».
  3. Нажмите «Управление другой учетной записью».
  4. Выберите пользователя, права которого нужно изменить и нажмите «Изменение типа учетной записи».
  5. Выберите «Администратор» и нажмите кнопку «Изменение типа учетной записи».

Готово, теперь пользователь является администратором Windows 10.

С помощью утилиты «Локальные пользователи и группы»

Ещё один способ сделать пользователя администратором — использовать встроенное средство «Локальные пользователи и группы»:

  1. Нажмите клавиши Win+R на клавиатуре, введите lusrmgr.msc и нажмите Enter.
  2. В открывшемся окне откройте папку «Пользователи», затем дважды кликните по пользователю, которого требуется сделать администратором. 
    Локальные пользователи и группы Windows 10

  3. На вкладке «Членство в группах» нажмите «Добавить». 
    Добавление пользователя в группу

  4. Введите «Администраторы» (без кавычек) и нажмите «Ок». 
    Добавление прав администратора пользователю

  5. В списке групп выберите «Пользователи» и нажмите «Удалить».
  6. Нажмите «Ок».

При следующем входе в систему пользователь, который был добавлен в группу «Администраторы», будет иметь соответствующие права в Windows 10.

Как сделать пользователя администратором с помощью командной строки

Существует и способ дать права администратора пользователю используя командную строку. Порядок действий будет следующим.

  1. Запустите командную строку от имени Администратора (см. Как запустить командную строку в Windows 10).
  2. Введите команду net users и нажмите Enter. В результате вы увидите список учетных записей пользователей и системные учетные записи. Запомните точное имя учетной записи, права которой нужно изменить.
  3. Введите команду net localgroup Администраторы имя_пользователя /add и нажмите Enter.
  4. Введите команду net localgroup Пользователи имя_пользователя /delete и нажмите Enter. 
    Как сделать пользователя администратором с помощью командной строки

  5. Пользователь будет добавлен в список администраторов системы и удален из списка обычных пользователей.

Примечания по команде: на некоторых системах, созданных на базе англоязычных версий Windows 10 следует использовать «Administrators» вместо «Администраторы» и «Users» вместо «Пользователи». Также, если имя пользователя состоит из нескольких слов, возьмите его в кавычки.

Как сделать своего пользователя администратором, не имея доступа к учетным записям с правами администратора

Ну и последний возможный сценарий: вы хотите дать себе права администратора, при этом отсутствует доступ к уже имеющейся учетной записи с этими правами, из-под которой можно было бы выполнить описанные выше действия.

Даже в этой ситуации существуют некоторые возможности. Один из самых простых подходов будет таким:

  1. Используйте первые шаги в инструкции Как сбросить пароль Windows 10 до того момента, как будет запущена командная строка на экране блокировки (она как раз открывается с нужными правами), сбрасывать какой-либо пароль не потребуется.
  2. Используйте в этой командной строке способ «с помощью командной строки», описанный выше, чтобы сделать себя администратором.

Видео инструкция

На этом завершаю инструкцию, уверен, что у вас всё получится. Если же остаются вопросы — задавайте в комментариях, а я постараюсь ответить.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Hp assistant for windows 10 не устанавливается
  • Обход tpm 2 0 windows 11 при установке
  • Служба windows search завершена из за ошибки устройство не готово
  • Как отключить автообновление системы windows 10
  • Ping mac address windows