Home  >  Article  >  System Tutorial  >  Reset Windows 11 Password Using Command Prompt without Disk

Reset Windows 11 Password Using Command Prompt without Disk

PHPz
PHPzOriginal
2024-08-02 08:21:431033browse

If you forgot your Windows 11 password and want to reset it without using any software and disk, then Command Prompt (cmd.exe) is a good choice. This article will show you how to reset Windows 11 password using Command Prompt without disk. You don't need any password reset disk or bootable disk, and you won't lose any data. It's worth noting that using Command Prompt you can only reset passwords for local accounts, not Microsoft accounts.

Reset Windows 11 Password Using Command Prompt without Disk


  • Method 1: Reset Windows 11 password using CMD while logged in
  • Method 2: Reset Windows 11 password using CMD when locked out

Method 1: Reset Windows 11 password using CMD while logged in

You forgot your Windows 11 password but can still log in? This happens when automatic login is enabled for your account, or you have other sign-in options, such as a PIN. If so, you can easily reset your Windows 11 password using the Command Prompt while logged in without using any disk.

Step 1: Click the Search icon on your Windows 11 taskbar. Type cmd in the search bar, and when the Command Prompt appears in the search results, click Run as administrator.

Reset Windows 11 Password Using Command Prompt without Disk

Step 2: If the User Account Control dialog pops up, click Yes to allow the Command Prompt app to open.

Reset Windows 11 Password Using Command Prompt without Disk

Step 3: In the Command Prompt window, type net user and press Enter to list all user accounts on your Windows 11. Note down the username of the account for which you want to reset the password.

Reset Windows 11 Password Using Command Prompt without Disk

Step 4: Type net user "username" password and press Enter. Replace username with the username of your account for which you want to reset password, and replace password with the new password you want. Once you are prompted that the command completed successfully, your Windows 11 password has been reset.

Reset Windows 11 Password Using Command Prompt without Disk

Method 2: Reset Windows 11 password using CMD when locked out

You forgot your Windows 11 password and are totally locked out and unable to log in? This happens if it is your only account and you have no other login options. Anyway, don't worry. Even when locked out, you can still reset Windows 11 password using the Command Prompt without using any disk. Follow the steps below.

Step 1: Boot Windows 11 to Command Prompt.

Go to your Windows 11 login screen and click the Power button in the lower right corner. Then click Restart while holding the Shift key on your keyboard.

Reset Windows 11 Password Using Command Prompt without Disk

Your PC will boot into the Windows recovery mode, which contains a series of advanced startup options. Choose Troubleshoot.

Reset Windows 11 Password Using Command Prompt without Disk

Choose Advanced options followed by Command Prompt, and the Command Prompt will open.

Reset Windows 11 Password Using Command Prompt without Disk

Tips: If your PC can't boot to the Command Prompt, you need to reset Windows 11 password with a bootable USB drive.

Step 2: Replace utilman.exe with cmd.exe.

In the Command Prompt window, type diskpart and press Enter to launch the DiskPart tool.

Reset Windows 11 Password Using Command Prompt without Disk

Type list volume and press Enter to list all volumes on your computer. Then determine the drive letter of the OS drive where your Windows 11 is installed according to the volume size or volume label.

Reset Windows 11 Password Using Command Prompt without Disk

Setelah anda menentukan huruf pemacu OS anda, taip keluar dan tekan Enter untuk keluar dari alat DiskPart.

Reset Windows 11 Password Using Command Prompt without Disk

Taip gerakkan E:windowssystem32utilman.exe E: dan tekan Enter untuk mengalihkan fail utilman.exe ke direktori akar pemacu OS anda untuk sandaran.

Reset Windows 11 Password Using Command Prompt without Disk

Taip salin E:windowssystem32cmd.exe E:windowssystem32utilman.exe dan tekan Enter. Ini akan menyalin fail cmd.exe ke E:windowssystem32 dan menamakannya utilman.exe.

Reset Windows 11 Password Using Command Prompt without Disk

Taip wpeutil reboot dan tekan Enter untuk memulakan semula komputer anda ke Windows 11.

Reset Windows 11 Password Using Command Prompt without Disk

Langkah 3: Tetapkan semula kata laluan Windows 11 menggunakan Command Prompt.

Apabila anda sampai ke skrin log masuk Windows 11, klik butang Kebolehcapaian (ikon manusia) di penjuru kanan sebelah bawah. Ini akan memaparkan tetingkap Command Prompt.

Dalam tetingkap Command Prompt, taip kata laluan "nama pengguna" pengguna bersih , sebagai contoh, pengguna bersih "Jess" 123456, dan kemudian tekan Enter untuk menetapkan semula kata laluan Windows 11 anda.

Reset Windows 11 Password Using Command Prompt without Disk

Setelah kata laluan ditetapkan semula, tutup tetingkap Command Prompt dan anda boleh log masuk ke Windows 11 dengan kata laluan baharu anda.

Langkah 4: Letakkan semula fail utilman.exe.

Fail utilman.exe pada Windows 11 anda telah digantikan dengan cmd.exe untuk menetapkan semula kata laluan anda. Dalam jangka masa panjang, ini boleh berisiko untuk komputer anda kerana sesiapa sahaja boleh mengklik ikon Kebolehcapaian pada skrin log masuk Windows 11 anda dan kemudian menetapkan semula kata laluan anda menggunakan gesaan arahan. Untuk menghapuskan risiko, lebih baik anda meletakkan semula utiliti Kebolehcapaian.

Untuk berbuat demikian, mula-mula log masuk ke Windows 11 anda dan buka Prompt Perintah sebagai pentadbir.

Dalam Prompt Perintah, taip

salin C:utilman.exe C:windowssystem32utilman.exe dan tekan Enter. Taip Yes dan tekan Enter.

Reset Windows 11 Password Using Command Prompt without Disk

Membungkus

Command Prompt ialah pilihan yang baik untuk menetapkan semula kata laluan Windows 11 anda yang terlupa tanpa kehilangan data. Tetapi prosesnya agak menyusahkan jika anda terkunci daripada Windows 11 anda dan tidak boleh log masuk, terutamanya jika anda seorang pengguna bukan teknikal dan tidak pandai menggunakan arahan Windows. Menggunakan arahan yang salah boleh merosakkan sistem Windows 10 anda. Jadi, jika anda mahukan cara yang lebih mudah untuk menetapkan semula kata laluan Windows 11 anda daripada menggunakan Prompt Perintah, iSumsoft Windows Password Refixer ialah pilihan terbaik anda.

The above is the detailed content of Reset Windows 11 Password Using Command Prompt without Disk. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn