How to Reset Your Forgotten Windows Password - General Topics

How to Reset Your Forgotten Windows Password
Forgetting your password is never any fun, but luckily there's a really easy way to reset the password. All you need is a copy of the windows installation disk and one simple command line trick.
Resetting Your Forgotten Windows Password
Boot off the Windows disk and select the “Repair your computer” option from the lower left-hand corner.
Follow through until you get to the option to open the Command Prompt, which you'll want to select.
First you'll want to type in the following command to backup the original sticky keys file:
Copy c:\windows\system32\sethc.exe c:\
Then you'll copy the command prompt executable (cmd.exe) over top of the sticky keys executable:
Copy c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
Now you can reboot the PC.
Resetting the Password
Once you get to the login screen, hit the Shift key 5 times, and you'll see an administrator mode command prompt.
Now to reset the password—just type the following command, replacing the username and password with the combination you want:
Net user Admin MyNewPassword
That's all there is to it. Now you can login.
Of course, you'll probably want to put the original sethc.exe file back, which you can do by rebooting into the installation CD, opening the command prompt, and copying the c:\sethc.exe file back to c:\windows \system32\sethc.exe.

Source
This should be the source of the above trick:
howtogeek.com/96630/how-to-reset-your-forgotten-windows-password-the-easy-way/

Please don't copy and paste stuff from the interwebz and post it here as your own.
Thread closed.

Related

using adb

I feel like an idiot. I keep reading posts and instructions on how to use the adb/adb shell. Everything I read seems to indicate that the knowledge on how to open the adb command window is something that any idiot should be able to do... So much so, that no one explains how! I must be missing something!
I have installed eclipse and the sdk, the ADT plugin, etc. I run adb.exe and a command window flashes on my screen and immediately fades away. I can't even read what was posted in the window.
I know I am missing something but I guess I am just too inexperienced to know what that is. I can't find anything on the web that will tell me what file to open or sequence of files to open to access the adb command window.
Someone please help out a hopeless nuub!
Thanks
I am running Windows Vista 64 and have installed the 64bitUSB drivers. I can open an emulator, I can run the terminal on my G1, have installed the JK modified r30 on my phone.
add the whole path to your sdk/tools folder to your windows environment path: (right click my computer, click properties, select "advanced" select "environment variables" and look for "Path" in the bottom list, select "Path" and click "edit" then at the end of the existing path info, add a semicolon, and then paste in the complete path to your sdk/tools folder, click save, and close all the windows.
now, goto start, run, and type cmd.exe, a command line window will appear, type "adb" and it should work.
cheers,
-- michael
you can also use google to search the forum when you are looking for 3 letter terms (the forum search function is 4+ characters)
http://www.google.com/search?hl=en&q=site:http://forum.xda-developers.com/+android+adb
--M
you don't use adb by pressing adb.exe in the tools folder you use it with command prompt go to programs and to accessories and look for command prompt now you can use adb like adb remount and pull push so on with your phone connected to the pc can you see your phone in ddms you open it from the sdk tools folder where the adb.exe is and if you can use adb.exe to open command prompt it don't work for me ether
I'm guessing that when I get all the ADB info after typing "adb" in the command window that it is working correctly?
If you run adb with no args, it will simply return a short summary of available args and terminate. In Windows if the window is opened by a program using the command line rather than directly calling cmd.exe, it will automatically close when the program terminates. The solution is to use cmd and then adb from within that.
Jashsu - Thanks! that was what I needed to know! LOL I am such a noob!!!
I had access to adb all the damn time! I just didn't know it! DUH!
I now have Koush's auto rotating browser installed! AWESOME.
Thanks to all who responded! I am learning pretty quick. But, some things are just so commonly known by dev's that they just aren't explained very well.
I found a couple of books I'm going to purchase so I don't have to keep bugging all of you. But, you guys are the greatest. Thanks for the help!

Nexus One to CyanogenMod How Do You Do It

So i read a story on Engadget that would allow the Nexus One to record videos in 720p. I wanted to do that but i was told that i had to modify my phone with some program called cyanogenmod. I was linked to this guide:
edit: well i'm not allowed to post links on this forum, that sucks. I'll just post a snippit of the webpage.
Prerequisites
In order to flash a fully stock Nexus One with any ROM, you must first unlock the bootloader of your Nexus One and flash a Recovery Image. If your Nexus One's bootloader is already unlocked, and you already have a Recovery Image installed, skip this section.
WARNING: UNLOCKING THE NEXUS ONE'S BOOTLOADER WILL VOID YOUR WARRANTY!
You will need the fastboot shell on your computer to use the commands to unlock the bootloader. Follow the Install the Latest Android sdk guide, to get the ADB and Fastboot shell on your computer.
Before continuing, you should first copy all the necessary files to your SD Card. Doing so will make the entire process much easier and faster. Please do the following to copy the files from your computer to SD card root if your Mass storage is not mounted or you get error when trying to access the mass storage drive.
Connect Nexus One to Computer
Make sure the computer picks up the newly connected device and shows a new mass storage drive
On the phone, pull down the top notification slider, you should see an item called "USB Connected"
Click on the "USB Connected" and click Mount. This will make the phone SD Card available for use with computer
Copy the required files
Files you will need:
Download the latest release of CyanogenMod for the Nexus One and the Google Addon from here Mirror1 Mirror2 Mirror3 Mirror4 Mirror5 Mirror6 Copy these two to your SD Card
Download the latest release of Amon_Ra's Nexus One Recovery Image from - Leave the recovery.img on your pc
Rename Amon_Ra's recovery file "Recovery.img", and make sure you have copied the above two zip files to the root of your SD Card.
Power off your phone.
Boot into Bootloader Mode.
Hold down the trackball, and press the power button. Do not let go of the trackball until the phone boots into bootloader mode (You will see a white screen with three skating bugdroids).
Unlock the Bootloader.
Make sure your phone is connected to your PC.
On your PC, navigate to the AndroidSDK\tools folder.
Hold down the Shift key, Right click on an empty space inside the folder, and press "Open command window here". (note: on Windows XP, this might not work. Instead, you may need to open the command window by going to Start - Run - Type "cmd" - press Enter, then type "cd c:\AndroidSDK\tools" (without the quotes), press Enter)
Inside the command prompt that opens up, type in the following command:
fastboot oem unlock
On your phone, a prompt will open up, asking you if you are sure you want to unlock your bootloader, and again warning you that doing so will void your warranty. If you agree to these terms, press Volume Up to select Yes, and then press the Power button to confirm.
Your phone will restart. Let the phone boot into Android. Switch the phone back to usb debugging (unlocking bootloader causes a wipe, reseting settings), and then Power Off the phone.
Once again, boot into bootloader mode.
Flash Recovery.
Note: The Recovery.img should NOT be on the SD Card, it should be in the current working directory.
On the command prompt you opened earlier, type in the following command:
fastboot flash recovery Recovery.img
The recovery image should now be installed on your Nexus One.
Click to expand...
Click to collapse
But i'm lost. I downloaded all the necessary files so far but i'm confused up to this point:
Boot into Bootloader Mode.
Hold down the trackball, and press the power button. Do not let go of the trackball until the phone boots into bootloader mode (You will see a white screen with three skating bugdroids).
Unlock the Bootloader.
Make sure your phone is connected to your PC.
On your PC, navigate to the AndroidSDK\tools folder.
Hold down the Shift key, Right click on an empty space inside the folder, and press "Open command window here". (note: on Windows XP, this might not work. Instead, you may need to open the command window by going to Start - Run - Type "cmd" - press Enter, then type "cd c:\AndroidSDK\tools" (without the quotes), press Enter)
Inside the command prompt that opens up, type in the following command:
Click to expand...
Click to collapse
I'm on a Mac so i dunno if that makes a difference to how i approach this. but when i power my phone down and boot it into bootloader mode, i can't access the phone on the computer because the phone isn't mounted, its at the white screen. how can i access this androidSDK/tools folder?

[GUIDE] Easy and simple adb and fastboot setup for newbies (Windows only)

Linux users please go HERE (thanks to bloodychaos)​Similar guides can be found on other devices subforums around but I can see that a lot of new users in our forum are not familiar with the setup and use of this commands.
All the instructions and installation files can be found on the Android Developers webpage, but for basic commands it is not necessary to download the whole SDK (which requires the JDK as well) to follow installation and the resources download process.
*Important: to use the adb/fastboot commands you have to enable USB Debugging in your phone Settings -> Applications -> Development menu*
To have working adb and fastboot system wide for basic commands just follow the steps below:
UPDATE: Not necessary for Windows 7 is installng adb drivers automatically after plugging the device and fastboot ones after rebooting the connected device to bootloader. To get the HTC USB Drivers on different Windows version download and install HTC Sync (If you do not need the Sync application itself you can uninstall it but the drivers will remain on your system).
*According to post #5 in this thread in some cases may be necessary to temporary disable your antivirus software during the installation of HTC Sync. Thanks @mimirom*
Download the zip archive or the attached file below
Extract the archive on your C: drive. You will have C:\android-tools folder
Adding to the System Path globally to use the command without browsing to the containing folder
Method 1 (via GUI):
Go to My Computer icon -> right click and select Properties.
On the left side of the opened screen select Advanced system settings.
(Or Start -> Search -> type sysdm.cpl -> Enter, browse to the Advanced tab)
Look down on the opened menu and select Environment Variables.
In the lower half are listed the System Variables.
Scroll to find "Path" variable, select it and click Edit...
On the Edit window in the Variable value field go to the end of the line (do not delete it!) and add without any intervals (spaces):
Code:
;C:\android-tools
do not forget the semicolon symbol (;)!
Click Ok 3 times.
Method 2 (via Command prompt):
Go to Start and in the Search box type cmd, right click and Run as Administrator
Type
Code:
setx path /m "%PATH%;C:\android-tools"
and hit Enter. Close the cmd window
fonpacific said:
By the way, I noticed that it doesn't work for me (windows 7 professional) unless i end the path of adb with "\", for example: ;C:\android-tools\ and not ;C:\android-tools as in your guide.
Click to expand...
Click to collapse
Method 3:
bonesy said:
Just a tip, if you put the Adb and fastboot files in C:/windows/system32 (32bit) or in C/windows/sysWOW64 (64bit) you can just use them from any command prompt window
Click to expand...
Click to collapse
To check is it working properly open Command Prompt (Start -> Search -> type cmd -> Enter) and type adb
If everything is configured properly this should list you the Android Debug Bridge version and the available commands.
*HINT*: To use adb or fastboot with files in the Command prompt you have to navigate to the folder containing the file first (using the cd command) e.g. "D:\Downloads\Android" and then to execute the command.
Example:
Start -> type cmd in the Search box, then Enter. You will see
C:\Users\with blinking cursor
If your file is on another drive like the example type "d:" (without the quotes), or other drive letter to go to the relevant drive. Skip this if the file is on C: drive. Then type:
cd D:\Downloads\Android to go to the "D:\Downloads\Android" folder. If your path contains spaces (intervals) type it in quotes.
The command "cd.." brings you one folder back
Good Idea!
Have put a link to this within the GUIDES section of [INDEX][22 SEP 11] ROMS/RECOVERY/ROOT/HBOOT/RADIOS/TWEAKS/GUIDES/etc
I believe that the guide would be more useful if you put in a link to a URL for the HTC Drivers and moved the advice about enabling USB Debugging to the top!
I can now point people at this guide rather than manually instruct them, Thank's you probably just saved me loads of time and aggravation!
Nice Work, Great Help
Excellent! Exactly what I needed. Thanks for showing us this.
Hi an thank you. Good guide.
I believe one important information is missing in the guide:
Before installing the HTC drivers (or HTC sync) it is necessary to temporarily disable AntiVirus software on Windows machines. If you don't do that, Windows won't recognise your phone. After the installation is finished, enable AntiVirus again.
I got this advice somewhere and it was true for me personally. I'm using Windows 7.
Sent from my HTC Desire S using XDA App
One more comment:
This is a minor detail but I think it's worth mentioning.
If you are using the HTC Sync installation in order to get the HTC drivers only, you actually don't need to install and immediately uninstall HTC Sync itself.
The Sync installer will first install the Desired (pun fully intended ;-) drivers and the it will stop. Next it's going to ask you if you want to proceed with the installation of HTC Sync. At that point you hit cancel and you're done. No Sync, just the drivers.
mimirom said:
One more comment:
This is a minor detail but I think it's worth mentioning.
If you are using the HTC Sync installation in order to get the HTC drivers only, you actually don't need to install and immediately uninstall HTC Sync itself.
The Sync installer will first install the Desired (pun fully intended ;-) drivers and the it will stop. Next it's going to ask you if you want to proceed with the installation of HTC Sync. At that point you hit cancel and you're done. No Sync, just the drivers.
Click to expand...
Click to collapse
It's very useful, Thanks!!
Doing all this the phone has to be turned off, on, or power button and volume down?
Desire S said:
Doing all this the phone has to be turned off, on, or power button and volume down?
Click to expand...
Click to collapse
You do not need a phone for this guide It is setup for PC
Just a tip, if you put the Adb and fastboot files in C:/windows/system32 (32bit) or in C/windows/sysWOW64 (64bit) you can just use them from any command prompt window
bonesy said:
Just a tip, if you put the Adb and fastboot files in C:/windows/system32 (32bit) or in C/windows/sysWOW64 (64bit) you can just use them from any command prompt window
Click to expand...
Click to collapse
This is exactly the purpose of point 4 of the guide (global path setup)
Just trying to give another idea mate, I used to set up all the SDK and make a global path but now just drop them in those folders when i reinstal indows
bonesy said:
Just trying to give another idea mate, I used to set up all the SDK and make a global path but now just drop them in those folders when i reinstal indows
Click to expand...
Click to collapse
Agree, added to the first post.
Sent from my Desire S using Tapatalk
Instructions for Linux users???
jamsh said:
Instructions for Linux users???
Click to expand...
Click to collapse
On my Linux system I have installed Java and the whole Android SDK and the set the path of course. If you are a Linux user you should know how to do this. Also there are guides for other devices that are basically the same
amidabuddha said:
Similar guides can be found on other devices subforums around but I can see that a lot of new users in our forum are not familiar with the setup and use of this commands.
All the instructions and installation files can be found on the Android Developers webpage, but for basic commands it is not necessary to download the whole SDK (which requires the JDK as well) to follow installation and the resources download process.
*Important: to use the adb/fastboot commands you have to enable USB Debugging in your phone Settings -> Applications -> Development menu*
To have working adb and fastboot system wide for basic commands just follow the steps below:
To get the HTC USB Drivers download and install HTC Sync (If you do not need the Sync application itself you can uninstall it but the drivers will remain on your system).
*According to post #5 in this thread in some cases may be necessary to temporary disable your antivirus software during the installation of HTC Sync. Thanks @mimirom*
Download the zip archive (Mirror @MediaFire) or the attached file below
Extract the archive on your C: drive. You will have C:\android-tools folder
Adding to the System Path globally to use the command without browsing to the containing folder
Method 1 (via GUI):
Go to My Computer icon -> right click and select Properties.
On the left side of the opened screen select Advanced system settings.
(Or Start -> Search -> type sysdm.cpl -> Enter, browse to the Advanced tab)
Look down on the opened menu and select Environment Variables.
In the lower half are listed the System Variables.
Scroll to find "Path" variable, select it and click Edit...
On the Edit window in the Variable value field go to the end of the line (do not delete it!) and add without any intervals (spaces):
Code:
;C:\android-tools
do not forget the semicolon symbol (;)!
Click Ok 3 times.
Method 2 (via Command prompt):
Go to Start and in the Search box type cmd, right click and Run as Administrator
Type
Code:
setx path /m "%PATH%;C:\android-tools"
and hit Enter. Close the cmd window
Method 3:
To check is it working properly open Command Prompt (Start -> Search -> type cmd -> Enter) and type adb
If everything is configured properly this should list you the Android Debug Bridge version and the available commands.
*HINT*: To use adb or fastboot with files in the Command prompt you have to navigate to the folder containing the file first (using the cd command) e.g. "D:\Downloads\Android" and then to execute the command.
Example:
Start -> type cmd in the Search box, then Enter. You will see
C:\Users\with blinking cursor
If your file is on another drive like the example type "d:" (without the quotes), or other drive letter to go to the relevant drive. Skip this if the file is on C: drive. Then type:
cd D:\Downloads\Android to go to the "D:\Downloads\Android" folder. If your path contains spaces (intervals) type it in quotes.
The command "cd.." brings you one folder back
Click to expand...
Click to collapse
Nice work mate
Thanks a lot for the guide, dude!
By the way, I noticed that it doesn't work for me (windows 7 professional) unless i end the path of adb with "\", for example: ;C:\android-tools\ and not ;C:\android-tools as in your guide.
Hope it helps!
jamsh said:
Instructions for Linux users???
Click to expand...
Click to collapse
OP edited - there is a link to a guide for Linux users
fonpacific said:
Thanks a lot for the guide, dude!
By the way, I noticed that it doesn't work for me (windows 7 professional) unless i end the path of adb with "\", for example: ;C:\android-tools\ and not ;C:\android-tools as in your guide.
Hope it helps!
Click to expand...
Click to collapse
Thank you for the remark, I hope it will help the users with the same problem
Hey Guys, I need help!
after an installation of adb all I get is error:device not found
i entered a code adb shell and hit enter, than i entered
dmesg | grep mmc0, since you cannot put two lines of code at once (I'm a rookie)..
where did I put it wrong?
I can get to recovery of my device, but I get error like:
/I]E:Can't open /cache/recovery/command
I made revolutionary S-OFF..
Thanx for a help!
Rocks
You have to enable USB debugging in the settings.
And while in recovery it should work too
Sent from my HTC Desire S

[Guide] Enable mobile data\WiFi to login to gmail account after getting locked out

Okay, So just today my girlfriends room mate at uni decided it would be funny to lock her out of her Galaxy S II
I Tried every available method to me to try and get it unlocked but it wouldn't work.
After some time of scratching my head at this, I found the answer
These are the steps you have to follow in order to make this work
1.Make sure USB Debugging is on [Sorry to those of you who haven't got it turned on :\]
2. Make a folder called adb anywhere you like and place the files in the zip called adb (needs to be extracted) you can use WinRAR, 7zip
etc) attached to the bottom of this post.
3. Attach your phone to your PC and make sure all drivers are installed
4. Open up a command window (this can be done by pressing the start button on your keyboard and r together, then typing cmd) and navigate to the adb folder you created. The command : cd C;\Users\%userprofile%\%yourdirectory%\adb (replace userprofile with your username and yourdirectory with the directory you chose to place adb, don't forget to remove %!!)
5.Now type this command exactly and when done hit enter: adb pull /data/data/com.android.providers.settings/databases/settings.db
6.Don't close Command, but go to the folder where you extracted adb, there should be a new file there called settings.db
7. What I did was transferred the file to my Galaxy S3, and I used an SQlite editor
8.Using an SQlite Editior, go to the tab that says files and scroll down to your sdcard or external sdcard wherever you put it, open the settings.db.
9. There are 6 Options; android_metadata, bluetooth_devices, bookmarks, secure, sqlite_sequence, system. Go to the option that says secure and navigate down to mobile_data or wifi_on.
10. These options either have a 1 or a 0 under the value column, 0 for being off, 1 for being on. Let's assume both are 0. Now if you don't have mobile data, leave this at 0, if you do have it change it to 1, the same with wifi change it to one and you should save the changes you make when you exit.
11. Plug the device back to your computer and copy the new settings.db to the adb folder and overwrite any existing files.
12. Use the command and once done hit enter: adb push ./"settings.db" /data/data/com.android.providers.settings/databases
You should get an immediate response if not just reboot and then your data or wifi should be on and you are able to login to your gmail without a problem
Hope this helps anyone who gets stuck like this

Fix "unable to load" using fastboot and windows 10

I have been frustrated trying to use fastboot commands, especially the "flash" command on my windows 10 laptop. I continually got an "unable to load' message. I have reloaded the drivers manually as recommended by some, which still did not work. Well, it turns out that you need the complete path in the fastboot command line when using 10. Put your img, bin files in a folder you will be using. Open the command prompt using the windows-x keys. Select the command prompt from the menu.. It does not need to be the administrator. Use the fastbooot devices command to make sure the computer can see your device. I then issue the fastboot command I want: fastboot flash logo and then drag the file from the folder you are in and drop it on the command line. In this case I used, nowarning.bin. When it populated the complete path starting with the c: prompt shows up. Make sure there is a space before the C: and the previous command. Hit enter. I have searched everywhere and have not found an answer to this problem. I did see a video on youtube where the fellow dragged a file from the folder and dropped it in the command prompt window. So thanks to him for that simple yet effective trick.. Hopefully this will work for you if your having the same problem I had...

Categories

Resources