Showing posts with label Windows7. Show all posts
Showing posts with label Windows7. Show all posts

Friday, June 1, 2012

Reset Your forgotten windows password in easy steps


If you forget windows password, its not easy to reset it. if you dont know the propper tool which can do this. Most of the peoples are using ERD Disk for this. Its working fine upto windows xp, But when they came across windows vista/7 it wont work. So here most of the blogs will suggest to work with sam file (SAM is the file that contains your Windows registry). Its present in directory "WINDOWS/system32/config/". Using linux command chntpw on an Linux live disk we can change the settings. like this,

sudo chntpw –u <username> SAM

Some other similar kind of bootable stuff's are also available for the same.  But in-case if you don't have any one of these stuff or you are not getting it working for you, Now if you can access the windows file system. Then you can still change it. Just applying a simple trick and its all done.

What we have to do is we have to found the window functions which can execute on login screen. lucklly we have a sticky key function, i.e. hitting shift key for 5 times and a popup will come. We know password for any user can be change from command line also.So I think you got me. Exactly we are going to interchange these functions. All these functions are controlled from some files. So if we will interchange the name of files it will work for us. here

Command line the file is: cmd.exe
Sticky key file is: sethc.exe

Both are present in "\windows\system32" directory. so we just need to take the backup of sethc.exe file. this thing can be done from Windows installation disk as well as Linux live disk.

So first go with Windows installation disk:

1. Boot off the Windows disk and select the "Repair your computer" option.
2. Find the option to open the Command Prompt and select it.
3. take the back of stiky file as
copy c:\windows\system32\sethc.exe c:\

4. Replace the stiky file with command prompt file as
copy c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe

5. Reboot your system and on login screen hit shift key 5 times, a command prompt will open in administrator mode.
6. using "net user" command you will get user list present in your system.
7. Now time to change the password as:
net user <username> <password>
Once it says command completed successfully its done.

Now you can log in to your windows System. using your password.
Here you probably want to put back the original sethe.exe file. So you can reboot your system from Windows installation disk and go through step 1 & 2 to get command prompt. and execute the commend
copy c:\sethc.exe c:\windows\system32\sethc.exe
Same thing can be done from linux environment also, Only you need to get this windows directory. 

Monday, December 12, 2011

How to Install Windows 7 Or Windows 8 From USB Drive

In case your DVD-Rom is not working & you have a usb drive of capacity at-least 4 GB, & Windows7 or Windows8 DVD image we can still install OS on our Machine without a Disk. For this follow these steps.

Requirements:

*USB Flash Drive (Minimum 4GB)

*Windows 7 or Windows 8 installation files.

Follow the below steps to create bootable Windows 7/Windows 8 USB drive using which you can install Windows 7 or Windows 8 easily.

Procedure:

1. Plug-in your USB flash drive to USB port and move all the contents from USB drive to a safe location on your system.

2. Open Command Prompt with admin rights. Use any of the below methods to open Command Prompt with admin rights.

*Type cmd in Start menu search box and hit Ctrl+ Shift+ Enter.

Or

*Go to Start menu > All programs > Accessories, right click on Command Prompt and select Run as administrator.

3. You need to know about the USB drive a little bit. Type in the following commands in the command prompt:

First type DISKPART and hit enter to see the below message.



Next type LIST DISK command and note down the Disk number (ex: Disk 1) of your USB flash drive. In the below screenshot my Flash Drive Disk no is Disk 1.

4. Next type all the below commands one by one. Here I assume that your disk drive no is “Disk 1”.If you have Disk 2 as your USB flash drive then use Disk 2.Refer the above step to confirm it.

So below are the commands you need to type and execute one by one:

SELECT DISK 1

CLEAN

CREATE PARTITION PRIMARY

SELECT PARTITION 1

ACTIVE

Now for formatting we can use any of these two methods

FORMAT FS=FAT32

if you choose to use ntfs, you'll later have to run the "Bootsect.exe /nt60 G:" command to put boot manager compatible files onto your USB flash drive to make it a bootable device. Now i am choosing ntfs

FORMAT FS=NTFS

(Format process may take few seconds)

ASSIGN

EXIT


Don’t close the command prompt as we need to execute one more command at the next step. Just minimize it.




Note: Doing this much steps through command prompt will take around 20-30 minute, So we can save time using graphical way i.e. Right click on USB drive Select format option & use quick format it will save our 20-30 minute. and then we can continue with further procedure of installing Boot-loader .


5. Next insert your Windows7/Windows 8 DVD into the optical drive and check the drive letter of the DVD drive. In this guide I will assume that your DVD drive letter is “F” and USB drive letter is “H” (open my computer to know about it).

6. Maximize the minimized Command Prompt in the 4th step.Type  the following command now:

D: CD BOOT and hit enter.Where “F” is your DVD drive letter.

CD BOOT and hit enter to see the below message.

7. Type another command given below to update the USB drive with BOOTMGR compatible code.

BOOTSECT.EXE /NT60 H:



Where “H” is your USB drive letter. Once you enter the above command you will see the below message.

8. Copy your Windows 7 or Windows 8 DVD contents to the USB flash drive.

9. Your USB drive is ready to boot and install Windows 7 or Windows 8. Only thing you need to change the boot priority at the BIOS to USB from the HDD or CD ROM drive. I won’t explain it as it’s just the matter the changing the boot priority or enabling the USB boot option in the BIOS.