Как сменить учетную запись в windows 10 через командную строку

Все способы:

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

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

Как изменить права пользователя в Виндовс 10

Рассмотрим, как можно поменять права юзера на примере добавления привилегий администратора (обратная операция является идентичной) в ОС Windows 10.

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

Способ 1: «Панель управления»

Стандартным методом изменения привилегий юзера является использование «Панели управления». Этот способ прост и понятен для всех пользователей.

  1. Осуществите переход в «Панель управления».
  2. Открытие Панели управления в Виндовс 10

  3. Включите режим просмотра «Крупные значки», а после выберите раздел, указанный ниже на изображение.
  4. Открытие раздела Учетные записи пользователей в Виндовс 10

  5. Кликните по элементу «Управление другой учетной записью».
  6. Управление другой учетной записью в Виндовс 10

  7. Нажмите на аккаунт, нуждающийся в смене прав.
  8. Выбор учетной записи Майкрософт в Виндовс 10

  9. После чего выберите «Изменение типа учетной записи».
  10. Внесение изменений в права учетной записи через панель управления в Виндовс 10

  11. Переключите аккаунт юзера в режим «Администратор».
  12. Выбор нового типа для учетной записи через панель управления в Виндовс 10

Способ 2: «Параметры системы»

«Параметры системы» — еще один удобный и простой способ изменить привилегии пользователя.

  1. Нажмите комбинацию «Win+I» на клавиатуре.
  2. В окне «Параметры» отыщите элемент, указанный на изображении, и щелкните на нем.
  3. Элемент Учетные записи в Виндовс 10

  4. Перейдите в раздел «Семья и другие люди».
  5. Элемент Семья и другие люди в Виндовс 10

  6. Выберите аккаунт, для которого нужно изменить права, и кликните по нему.
  7. Выбор аккаунта для изменения типа учетной записи в Виндовс 10

  8. Нажмите пункт «Изменить тип учетной записи».
  9. Установите тип учетной записи «Администратор» и нажмите «Ок».
  10. Изменение типа учетной записи пользователя через параметры системы в Виндовс 10

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

Наиболее короткий способ заполучить права администратора — это использование «Командной строки». Достаточно просто ввести одну единственную команду.

  1. Запустите cmd с правами администратора через правый клик по меню «Пуск».
  2. Открытие командной строки от имени администратора в Виндовс 10

  3. Наберите команду:

    net user administrator /active:yes

    Ее выполнение активирует скрытую запись администратора системы. В русскоязычной версии ОС используется ключевое слово администратор, вместо англоязычного варианта administrator.

  4. Добавление учетной записи администратора с помощью командной строки в Виндовс 10

    В дальнейшем уже можно использовать этот аккаунт.

Способ 4: Оснастка «Локальная политика безопасности»

  1. Нажмите комбинацию «Win+R» и введите в строку secpol.msc.
  2. Открытие оснастки secpol.msc в Виндовс 10

  3. Разверните раздел «Локальные политики» и выберите подраздел «Параметры безопасности».
  4. Установите значение «Включен» для параметра, указанного на изображении.
  5. Включение учетной записи администратора через оснастку secpol.msc в Виндовс 10

    Этот способ повторяет функционал предыдущего, то есть, активирует ранее скрытую учетную запись администратора.

Способ 5: Оснастка «Локальные пользователи и группы»

Этот способ используется только для отключения учетной записи администратора.

  1. Нажмите комбинацию клавиш «Win+R» и введите в строку команду lusrmgr.msc.
  2. Открытие оснастки lusrmgr.msc в Виндовс 10

  3. В правой части окна щелкните по директории «Пользователи».
  4. Щелкните по учетной записи администратора правой кнопкой мыши и выберите пункт «Свойства».
  5. Установите отметку напротив пункта «Отключить учетную запись».
  6. Отключение учетной записи администратора в Виндовс 10

Такими способами можно легко включить или отключить учетную запись администратора, а также добавить или снять с пользователя привилегии.

Наша группа в 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.

If you have more than one user account on your PC then using Fast User Switching you can easily switch between different user account without needing to sign out from any user account. But to do that you need to learn different methods to switch between user accounts in Windows 10 and this post, we will learn how to do so exactly. If you don’t have Fast User Switching enabled by default, then head over here to learn How to Enable or Disable Fast User Switching in Windows 10.

6 Ways to Switch User in Windows 10

Once you have enabled Fast User Switching, then you can continue with this guide. Just make sure to save any work which you might be doing before switching user. The reason behind this is that you might lose your open word document or any other work as Windows doesn’t automatically save them for you. So without wasting any time let’s see How to Switch User in Windows 10 with the help of the below-listed tutorial.

Table of Contents

Make sure to create a restore point just in case something goes wrong.

Method 1: How to Switch User from the Start Menu

If you are already signed into Windows 10 with your user account, then don’t worry you can still switch to the different user account from Start Menu. Click on the Start button from the bottom-left then click on your user account picture and from the context menu select the user account you want to switch to.

How to Switch User from the Start Menu | 6 Ways to Switch User in Windows 10

You will be directly taken to the log-in screen of the user account you selected, enter the password or PIN, and you would successfully sign-in to this user account. You can again switch back to your original user account by following the same steps.

Method 2: How to Switch User using Windows Key + L

If you want to switch to a different user account while you have already sign-in into another user account, don’t worry press the Windows Key + L combination on the keyboard.

How to Switch User using Windows Key + L

Once you do that, you would be directly taken to the lock screen, and in the process, you will be locked from your user account. Click anywhere on the lock screen, and you would be shown the login screen from where you can choose any user account that you wish to sign into.

From the Login screen switch to the user account

Method 3: How to Switch User from Login Screen

The first thing you see when you start your PC is the sign-in screen, where by default the most recent user account you used to sign-in is selected and you could directly login by entering the password or PIN.

But if you want to select another user account from the sign-in screen, click on the available user accounts from the bottom-left corner of the screen. Select the account then enter password or PIN to sign-in to that particular account.

Method 4: How to Switch User using ALT + F4

Note: Make sure you have saved all of your work and close any open application before following this method, or pressing ALT + F4 will close all your apps.

Make sure you are on the desktop, if not then go to the desktop and make sure you click in an empty area on the desktop to make it your current focused (active) window once you have done that, press and hold ALT + F4 key combination together on your keyboard. This will show you the shut down prompt, from the shutdown drop-down select “Switch User” and click OK.

How to Switch User using ALT + F4

This will take you to the login screen where you can select any user account you want, enter the correct login information and you are good to go.

Method 5: How to Switch User using CTRL + ALT + DELETE

This method only works if you are already logged in with a user account, and you want to switch to another user account. Now press CTRL + ALT + DELETE key combination on your keyboard then you would be taken to a new screen, click “Switch user“. Again, this would take you to the login screen where you can select any user account you wish to switch to.

How to Switch User using CTRL + ALT + DELETE | 6 Ways to Switch User in Windows 10

Method 6: How to Switch User from Task Manager

If you are already signed into Windows 10 with your user account, don’t worry, you can still switch to Task Manager’s different user account. To open Task Manager, simultaneously press CTRL + SHIFT + ESC key combination on your keyboard.

Right-click on the User in Task Manager and select Switch User

Now make sure to switch to Users tab then right-click on the already signed in the user account that you want to switch to and then click Switch user account. If this doesn’t work, select the already signed user that you want to switch to and click on the Switch user button. You will now be directly taken on the sign-in screen of the selected user account, enter the password or PIN to successfully sign-in to the particular user account.

How to Switch User from Task Manager

Recommended:

  • Fix Realtek High Definition Audio Driver Issue
  • Fix Start Menu Not Working in Windows 10
  • Enable Enhanced Anti-Spoofing for Windows Hello Face Authentication
  • Fix Bluetooth can’t turn off on Windows 10

That’s it you have successfully learned How to Switch User in Windows 10 but if you still have any questions regarding this tutorial then feel free to ask them in the comment’s section.

Загрузить PDF

Загрузить PDF

В Windows командная строка является аналогом терминала в Mac OS X, то есть в ней можно вводить команды, чтобы настроить систему. Большинство команд можно заменить простым обращением к графическому интерфейсу пользователя, но создать (или удалить) учетную запись пользователя легче и быстрее с помощью командной строки.

  1. Step 1 Откройте меню «Пуск».

    Для этого нажмите кнопку «Пуск» в левом нижнем углу экрана. Чтобы создать или удалить учетную запись, войдите в систему в качестве администратора.

    • Также можно нажать кнопку Win, чтобы открыть меню «Пуск».
  2. Step 2 В строке поиска меню «Пуск» введите «командная» (без кавычек).

    Значок командной строки появиться в результатах поиска в верхней части меню «Пуск».

    • Также можно нажать Win+Х, чтобы открыть панель быстрого доступа, на которой есть значок командной строки.
  3. Step 3 Щелкните правой кнопкой мыши по значку командной строки.

    Откроется выпадающее меню.

  4. Step 4 Нажмите «Запуск от имени администратора» в выпадающем меню.

    Вы не получите доступ к командной строке, если вошли в систему в качестве гостя.

    • Если вы используете панель быстрого доступа, просто нажмите «Командная строка (Администратор)». Не выбирайте стандартную опцию командной строки.
  5. Step 5 Нажмите «Да» во всплывающем окне.

    Так вы откроете командную строку как администратор.

    Реклама

  1. Step 1 Щелкните по окну командной строки.

    Так вы активируете курсор внутри командной строки.[1]

  2. Step 2 Создайте учетную запись пользователя.

    Для этого введите команду net user (имя пользователя) (пароль) /add и нажмите Enter. Так будет создана новая учетная запись пользователя.

    • Замените информацию в круглых скобках на имя пользователя и пароль. Не забудьте удалить круглые скобки.
  3. Step 3 Удалите учетную запись пользователя.

    Для этого введите команду net user (имя пользователя) /delete и нажмите Enter. Выбранная учетная запись будет удалена.

    • Когда учетная запись будет создана или удалена, в командной строке появится строка с сообщением «The command completed successfully» (Команда успешно выполнена).
  4. Step 4 Закройте командную строку.

    Теперь вы знаете, как создавать и удалять учетные записи пользователей с помощью командной строки.

    Реклама

Советы

  • Если вы открыли командную строку без опции «Запуск от имени администратора», вы не сможете создавать или удалять учетные записи пользователей.

Реклама

Предупреждения

  • Будьте осторожны, когда удаляете учетную запись пользователя – если ее удалить, восстановить ее не получится.

Реклама

Об этой статье

Эту страницу просматривали 95 829 раз.

Была ли эта статья полезной?

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

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Список служб windows командная строка
  • Как поставить запрет на установку программ windows 10
  • Как изменить яркость на ноутбуке windows 10 с помощью клавиатуры
  • Redmine как установить на windows 10
  • Заблокирован диск с windows 10 что делать