scotterman

notes to help me remember

Monthly Archives: June 2013

No Internet Connection (Wired or Wireless)

Had a laptop that would not connect to the internet.  Either wired or wirelessly it would not be able to get an IP address from DHCP.  I found this in the helpful Microsoft knowledgebase article 817571 (http://support.microsoft.com/kb/817571).  Essentially, the Windows sockets registry subkeys have become corrupted and must be replaced:

Method 1 exports the subkeys, then recreates them, other methods involve copying the keys from an operational, similar computer.

Use Registry Editor to export and delete the Winsock and Winsock2 registry subkeys, and then remove and reinstall TCP/IP on Microsoft Windows 2000 or  Microsoft Windows XP.   To do this, follow these steps.

Export and delete the corrupted registry subkeys

  1. Insert a floppy disk in the floppy disk drive of the computer whose registry entries you are exporting.
  2. Click Start,  click Run, type regedit,  and then click OK.
  3. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Winsock
  4. Do one of the following steps, depending on the operating system:
    • For Windows XP, on the File menu, click Export.
    • For Windows 2000, on the Registry menu, click Export.
  5. In the Save in box, click 3½ Floppy (A:), type a name for the file in the File name box,  and then click Save.
  6. Right-click Winsock, and then click Delete. When you are prompted to confirm the deletion, click Yes.
  7. Repeat steps 3 through 6 for the following subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Winsock2

    Note Each  .reg  file that you save must have a different name.

  8. Right-click Winsock2, click Delete, and then click Yes.
  9. Quit  Registry Editor.

Windows XP-based computer

Reinstall TCP/IP on a Windows XP-based computer

In Windows XP, the TCP/IP stack is a core component of the operating system. Therefore, you cannot remove TCP/IP in Windows XP.

  1. Install TCP/IP on top of itself. To do this, follow these steps:
    1. In Control Panel, double-click Network Connections, right-click Local Area Connection, and then click Properties.
    2. Click Install.
    3. Click Protocol, and then click Add.
    4. Click Have Disk.
    5. In the Copy manufacturer’s files from box, type System_Drive_Letter:\windows\inf,  and then click OK.
    6. In the list of available protocols, click Internet Protocol (TCP/IP), and then click OK.
  2. Restart your computer.

This did the trick for me.  I needed to reinstall the TCP/IP for both the LAN and wireless connections.

Windows 7 memory check

Really, I thought I already posted this, may have, who knows.  I have a laptop just out of sorts.  Windows 7 has a nice built in memory check, as documented at tomstricks:

To run Windows Memory Diagnostic tool in Windows 7, do any one of the the following methods:

Method 1:From Windows 7 Start Menu

  • Click the Windows 7 Start button, type memory, and click on Windows Memory Diagnostic
  • When the Windows Memory Diagnostic screen loads, click Restart now and check for problems
  • You computer will restart
  • The memory diagnostic will run and may take some time
  • Windows will restart and report any errors to you

Method 2: From Windows 7 Control Panel

  • Click the Windows 7 Start button.
  • Select Control Panel
  • Click the System and Maintenance icon
  • Select Administrative Tools
  • Then, click the Memory Diagnostics Tool icon.
  • Click the option to restart your computer now and run the memory diagnostics test or to schedule the memory diagnostic test to run at your next reboot.

Method 3: From Windows 7 Command Prompt

  • Click the Windows 7 Start button.
  • Type cmd in the Start Menu’s search box.
  • Right-click cmd.exe in the search results and then select Run as administrator.
  • Type mdsched.exe in the command prompt and then press enter.
  • Click the option to restart your computer now and run the memory diagnostics test or to schedule the memory diagnostic test to run at your next reboot.

Method 4: From The Windows Boot Manager

  • Restart your computer.
  • Start pressing F8 on your keyboard.
  • This will open advanced boot options screen.
  • Click Esc on your keyboard while you’re in the advanced boot options screen.
  • You’ll be taken to the Windows Boot Manager screen.
  • Press Tab on your keyboard to move to the Tools section of the boot manager screen and then press enter to start the Memory Diagnostics.

If you want to select advanced options after the Memory Diagnostic Tool starts, press the F1 key to modify the type of tests and number of times they run. After you finish making configuration changes to the tests, press F10 to start.

If you have any errors Windows Memory Diagnostic tool in Windows 7 will show up while it scans and a report will be given to you the next time your computer boots up.If you want to stop the memory diagnostic scan at any time press Esc on your keyboard.If Windows Memory Diagnostic tool in Windows 7 finds errors in your memory it’s time to replace your computer’s memory.

Creating a Macrium Boot USB

Used these directions to create a bootable USB drive to image a new laptop.  The instructions were the same as far as formatting the drive, but diverged a bit after that.  It was all good, though, as that was enough to get me going with it:

To create a WindowsPE USB boot stick you need to be running Windows Vista or above

The partition must be formatted using Windows Vista/7. Windows Vista/7 creates different partition boot sector code that’s compatible with the Boot Configuration Data (BCD). The BCD is used to boot Windows PE and all flavours of Windows with the Vista kernel and later. The partition boot sector is created when the file system is formatted.

——————————————————————————–

In this tutorial I’ll show you the simple steps required to create a USB stick that boots into the Macrium Reflect Windows PE Rescue Environment.

Make sure your USB stick is formatted as FAT32 or NTFS.

1.Open ‘My Computer’, right click on your USB drive and select properties
2.Make sure that FAT32 or NTFS is selected as the file system. It’s best to leave the ‘Quick Format’ option un-checked.

Note: If you receive a message saying ‘Windows was unable to complete the format’ then in some cases the format has actually finished and this message can safely be ignored.
3.Use DiskPart to set the partition on the USB drive ‘Active’.

From a command prompt type:

 

DiskPart

(In here I added the step “list disk” to identify the disk number, n, used in the next step)

Select Disk n
Select partition 1
Active
Exit

——————————————————————————–
Install the WindowsPE Component

We need to create an image of the bootable CD so we can transfer the contents to the USB stick.

1.Start Reflect, take the ‘Other Tasks’ menu option and select ‘Create a bootable Rescue CD’ The wizard opens and In the wizard window, select ‘Windows PE 2.0′ and click ‘Next’.

This is where it diverged.  The version I was using had the menu option to “Create Rescue Media”, and then had Windows PE 3.1.