logo
Resources Windows 7 Password Forgot Windows 7 Password to Login Laptop

What to Do If I Forgot Laptop Windows 7 Login Password

By Michael | Last Updated

I just forgot my Windows 7 laptop login password, what can I do to sign in?

If you need to reset Windows 7 laptop login password, password reset disk is the first choice, which can be created with two ways on accessible or locked computer. If you want to try another way to access computer, you are right here. The article will share another difficult password recovery way - Windows PE and script reset Windows 7 login password. Surely, if you feel it difficult to do, Windows Password Genius is recommended for you to create password reset disk for windows 7 password reset.

Steps to Reset Laptop Windows 7 Login Password with Win PE

Step 1: Get Microsoft Windows AIK and create a WinPE boot disk.

The Windows® Automated Installation Kit (AIK) for Windows® 7 helps you to install, customize, and deploy the Microsoft Windows® 7 and Windows Server® 2008 R2 family of operating systems. Windows PE ( Windows Preinstallation Environment) is included in it.

1. Download Microsoft Windows AIK from Microsoft official site, and install it on Windows 7.

1-1 Burn Windows AIK ISO file into CD or DVD

Because the downloaded Windows AIK is ISO disc image file, it must be burned to CD or DVD ROM to produce the installation disc first. Right-click the ISO image file and select Burn disc image or Open with -> Windows Disc Image Burner.

Or you can select the option to create a DVD from an image file in your DVD burning software. For additional assistance with this step, please see Creating a CD or DVD from an ISO disc image file.

1-2 Install Windows 7 AIK

  • Insert the Windows 7 AIK installation disc. The Welcome to Windows Automated Installation Kit screen should appear. If this screen does not appear, browse the DVD in Windows Explorer and double-click StartCD
  • Click Windows AIK Setup. Follow the installation wizard to complete the installation of the Windows AIK.

2. Create a Windows 7 PE boot disk.

2-1 Run Deployment Tools Command Prompt as Administrator

2-2 Copy the Windows PE image file to our working directory:
copype.cmd x86 c:/win7pe
//use copype.cmd to copy the required Windows PE files to our working directory (here c:\win7pe)

2-3 Mount Windows 7 pe image to a folder
imagex.exe /mountrw c:/win7pe/winpe.wim 1 c:/win7pe/mount

2-4 Copy the explorer.exe for local computer to system32 folder of Windows 7 pe

2-5 Unmount Windows 7 pe image:
imagex /unmount /commit c:/win7pe/mount

2-6 Replace the source windows 7 image with the new one:
copy c:/win7pe/winpe.wim c:/win7pe/iso/sources/boot.wim
//Use copype.cmd to copy the winpe.wim file into the ISO directory

2-7 Create a windows 7 pe image file:
oscdimg -n -bd:/win7pe/etfsboot.com c:/win7pe/ISO e:/winpe.iso

2-8 Burn the Windows 7 pe iso file to a CD/DVD disc

Step 2: Boot the locked laptop from WinPE boot disk.

  • 1. Inset WinPE CD disc into laptop
  • 2. Set your locked laptop boot from CD/DVD
  • 3. Save boot changes and boot laptop from WinPE boot disk
    If you have any trouble on setting your laptop to boot from CD/DVD drive, please see how to set your computer (laptop) boot from CD/DVD ROM

Step 3: Write a vb script to reset Windows 7 user password.

Set objUser =
GetObject("WinNT://" & "." & "/Administrator, user")
objUser.SetPassword "HackPWD123"
objUser.SetInfo

Step 4: Edit Windows registry offline to make script launch when Windows start.

[HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Startup]

[HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Startup\0\0]
"Script"="C:\\windows\\system32\\script.vbs"  // script file path
"Parameters"=""
"ExecTime"=hex(b):db,07,0c,00,03,00,0e, 00,00,00,21,00,13,00,1f,00
"LastPolicyTime"=dword:00fd86f8

Step 5: Reset password for administrator after laptop reboots and script runs.

Step 6: Login Windows 7, delete script and remove script boot key.

 

Articles you may be interested: