Trace cables the easy way with Cisco CDP on Windows

26. February 2010

No matter how good your network diagrams are, sometimes you need to verify the port your server/desktop is in. Cisco Discovery Protocol is a great tool for network admins when you need to quickly map routers and switches, and if you’ve got an ESX server connected you’ll see that it picks up CDP info too – but the vast majority of my managed systems are Windows.

Here’s how to use TCPDUMP by Micro Olap to extend that functionality to your Windows boxes.

Firstly you need to find the interface number of the network adaptor you are trying to find CDP data for.  Use this command:

tcpdump -D

Which gives you a list of the interfaces on the computer:

clip_image002

My actual NIC is the third one in the list, so I can run the command:

tcpdump -i 3 -nn -v -s 1500 -c 1 ether[20:2] == 0x2000

-i n [interface and the number in the list, for me 3]

-nn [don’t resolve DNS, speeds things up]

-v [verbose mode, otherwise we won’t see all the packet details]

-s 1500 [set the maximum packet size to capture, the MTU is 1500 by default so it will capture the entire packet]

-c 1  [Capture one packet only, since we only want the CDP packet and filter using the header]

ether[20:2] == 0x2000 [Check the Ethernet header packet ID for the hex value 0x2000 – CDP protocol]

image

Some output is omitted, but you can see that the name of the switch and the port are both in there.

Easier than tracing a cable!

Cisco, Networking, Windows 7, Windows Server, Windows XP, Windows Vista, Windows Vista SP1 , , , , , ,

How to force the removal of Folder Redirection from specific user accounts

3. April 2009

We have a folder redirection policy in place for all of our users in combination with a roaming profile policy - this policy is applied to the OU that contains our users. Unfortunately this policy was accidently linked to the root of our domain too, causing our Domain Admin users to be redirected too - something we do not want. When the mistake was discovered, the policy was unlinked, but the redirection remained (despite being set to revert when users fall out of scope). I tried re-applying the policy, modifying the out of scope policy and then moving the Domain Admin user out of scope, but it failed to remove the folder redirection.

In the end, the solution was straight forward enough:

Create a new OU (I used "Temp") and move the affected user(s) there:

image

Create and link a new Group Policy Object to the new OU. Name it something descriptive so you know what it is in future - Folder Redirection Removal.

image

Edit the group policy, drill down to User Configuration > Windows Settings > Folder Redirection and right click - properties on each folder you want to reset. Set the setting to “Basic – Redirect everyone’s folder to the same location” and set the target folder location to “Redirect to the local userprofile location”.

image

Select the settings tab and make sure the Policy Removal setting is set to “Redirect the folder back to the local userprofile location when the policy is removed.”

image

Set that for each folder you want to reset. Close the Group Policy Object Editor, and GPMC. Log onto the user's account on each computer you want to remove the redirection on - in my case, several servers. Check the location of the redirected folders to make sure it’s been removed. Once you’re sure, you can move your user back to the correct OU.

Active Directory, User Profiles, Windows Server 2003, Windows Vista, Windows XP , , , , , , ,

Windows Vista Local Area Network Connection “Authentication Failed”

15. January 2009

If you’re getting a error on your LAN connection it’s possible that your network connection is attempting 802.11 authentication on your wired network. Unfortunately, it seems that Vista/Server 2008 both attempt it before reverting. As far as I can see, it’s not causing any issues, other than irritating me with a “failed” and a red question mark.

VistaAuthenticationError1

Fortunately, it’s pretty easy to fix! The authentication is handled by the Wired AutoConfig service, so it’s just a case of disabling it. Navigate “Start”, then click “Run” (or just hit Win + r) and type “services.msc”. Click “OK” and the Services console will fire up.

VistaAuthenticationError2

 

Now if you scroll down to Wired Autoconfig and configure it as below (Stop the service, then select “Disabled” as the startup type).

VistaAuthenticationError3

Alternatively, you can enable 802.11 on your Windows Domain…but that’s another story!

Windows Vista, Windows Server 2008, Networking , ,

Activating Microsoft Reader on a Windows Mobile 5 device under Vista

22. October 2008

I recently tried to use Microsoft reader on my iMate K-Jam mobile, it's Windows Mobile 5 powered, so according to Microsoft it's fully supported. However, when I tried to activate, I got the following error:

"You have an older version of Pocket PC which does not support Activation"

Not true I cried, and after a lot of Google-ing and trying various different fixes that are posted on the net, I found the only one that actually worked for me!

It was as simple as adding the activation web site to the "Trusted Sites" zone in Internet Explorer, and running IE in the administrators context. It was one of those simple ones that really makes the 2 hours spent searching for an answer all the more frustrating.

I've got a feeling Microsoft should add notes to that effect on the site...never mind.

Digital music, Windows Mobile, Windows Vista , , , , ,

Vista DVD/CDRW drive message "Prepare this blank disk"

2. October 2008

For a little while now I've had an irritating problem with my Vista laptop. Whenever I insert a DVD, CD of any kind, pops up the message asking me to prepare a blank disk:

DVDError

It's impossible to access the files on the disc and I don't want Vista trying to "prepare" my data disc. Quite irritating, but not irritating enough to fix right away.

Microsoft have a KB article about it, which has worked in some cases, but not in most. There are various advices around to do with firmware, software, reinstalling the device - here's how I fixed it.

So, first step - eliminate any CD/DVD burning software that might be causing a conflict. If you've got commercial software, make sure you have your license key and media to reinstall at a later date.

I have the excellent ISO Recorder, by Alex Fienman - but I need to eliminate that as a possible cause, and it's free to install. I also have Roxio, which I've never used and came bundled with the OS installation. I removed all of them through the Programs and Features control panel.

DVDError

 

The next thing to do is check that there are no firmware updates for your drive, from the manufacturers web site. My laptop is a Dell Latitude D820, with a TSST TS-L462D drive - I found a new update and ran the installation. Follow the manufacturers instructions on this one.

Next, I followed Microsoft's article which involves editing the registry. Editing the registry incorrectly can seriously damage your computer, so back it up first, and be careful. Don't restart at this point.

DVDError

 

If you've installed VMWare server at all, it disables the autorun feature on your DVD drive so you don't have problems with virtual machines - however this can also cause the problem.

  • Open regedit, and change the following key:
    • HKEY_LOCAL_MACHINE\System\CurrentC­ontrolSet\Services\CDRom
  • Change the "Autorun" value from "0" to "1" which enables auto run on your drive and has been known to fix the issue.

Another solution which has been posted on many support forums is to add a file to "temporary burn" folder in your profile. I have no idea why this would resolve the problem, but it's worth a try. This did cause the "you have files ready to burn to your DVD drive" notification.

  • Open explorer, navigate to C:\Users\<user name>\AppData\Local\Microsoft\Windows\Burn\Burn
  • Right click the blank space, click "New > Text Document"
  • Try and access your drive.

And finally, open up your Device Manager, locate your DVD/CD drive, right click it and uninstall. Restart your computer - when you do the registry edits will take effect and the device will reinstall.


DVDError

 

Hopefully at this point you'll have a working, fully functional DVD drive.

Windows Vista , , , , , , , ,

Vista .msu installer fails with error: Installer encountered an error: 0x80070422

11. September 2008

I needed to use PowerShell for something today on my Vista laptop, but was unable to install the file. I had the normal UAC permission required when I ran it,  but then it failed with this error

Installer encountered an error: 0x80070422

The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

It turns out that you need to enable the Windows Update service in order to use an MSU file. How backwards is that? Well, lets see, I have to run a SERVICE in order to be able to install applications.

Incidently, PowerShell is fantastic, I'm just getting used to using it at the moment, probably more to come on that!

Windows Vista, PowerShell

Create a 100Mb file for testing transfer speeds

18. July 2008

We have a Bonded ADSL solution for our servers to provide the necessary upstream transfer speeds for the applications we host. We have bonded ADSL because our exchange still doesn't support SDSL, and a leased line is overkill. Theoretically, we should have 28.1 Mbps download and 3.2Mbps upload - what I am actually seeing is about 1.7Mbps down and 1.9Mbps up. I have tested this on various servers, over various times and file sizes, there is no doubt that the performance is POOR.

Anyway, on to my point. I wanted to create a file that was exactly 100MB to test transfer speeds. Windows XP, Vista, 2003 and 2008 all have a command line utility called FSUTIL.exe which has a subset of commands to manipulate files, with which you can create a file that is exactly 100MB...like so:

FSUTIL FILE CREATENEW 100MBTest.mdb 1048576

Usage: FSUTIL FILE CREATENEW [Filename] [Size in bytes]

 Nice!

Windows Vista, Windows XP, Exchange , , , , , ,

Outlook Web Access over SSL using Forms Based Authentication AND Integrated Authentication

16. July 2008

Outlook Web access is a fantastic tool for our company, providing on-the-go access to people's mailboxes - which is of course secured by SSL and uses Forms Based Authentication. Internally, we have an intranet portal that allows us to access the various systems - one of which is OWA. One of the stipulations for this internal portal is that it is all Single Sign On using NTLM authentication - integrated authentication. This is where the problem lies because enabling OWA with Forms Based Authentication over SSL disables Integrated Authentication. So our choice is to have users enter their credentials twice (not acceptable) or to disable FBA and have external users log on with the annoying pop-up.

OR...

You can create a copy of the /Exchange and /Public Virtual Directories and configure them to use Integrated Authentication. You can also restrict access to them by IP...here's how:

 I'm assuming you've already set up OWA with SSL on your Exchange server. If you need to do that, try How do I configure OWA to use SSL? at Daniel Petri's site

  1. Log onto your Exchange Server, and open up the IIS control panel. Locate your /Exchange and /Public virtual directories.
  2. Right click /Exchange, select "All Tasks" and then "Save Configuration to a File..."
    Figure 1
  3. Go through the dialogue, save to a file and if you're worried about security, add a password.
  4. Once you're done, right click any white space in the root web site (or the exchange web site) and select "New", then select "Virtual Directory (from file)..."
    Figure 2
  5. You will be presented with the "Import Configuratio" dialogue, click "Browse..." and select the file you've just created. Click "Read File" and select the Exchange location underneath
    Figure 3
  6. Click "OK" and you'll be asked to provide a new name, or replace the existing Virtual Directory - select create a new one and put an appropriate name (I uses ExchangeIA)
    Figure 4
  7. Now, this step is optional, but read on anyway because you might want to think about it. I only want to allow people on my network to access this using Integrated Authentication, no one else, so I am going to restrict access to the Virtual Directory that I've just created to my IP subnet. To do this right click the newly created Virtual Directory (ExchangeIA) and select the "Directory Security" tab. Under "IP address and domain name restrictions" click "Edit". Now select "Denied access" to deny anyone other than the exceptions, then click "Add.." and enter the details of your network to allow those computers access.
    Figure 5
  8. Now head back to step 1 and repeat for the /Public folder, if Integrated Authentication is required for Public Folders.

IIS, Outlook Web Access, Windows Vista, Exchange , , , , , , , ,

Update your Windows Search or Windows Desktop Search

14. July 2008

I noticed a post over at David Overton's blog today that highlights a new release of Windows Search. Normally not that exciting, but it is if you're using Outlook to open up another users mailbox.

I have quite a few mailboxes that are opened for historical reasons, people leave a company and I need access to their email. I don't want to bloat my mailbox with all their email, it's hard enough to find my own emails!

Previously, I've not been able to index the other people's mailboxes, this is a distinct bonus!

David's post is here: http://uksbsguy.com/blogs/doverton/archive/2008/06/08/upgrade-windows-search-to-version-4-0-and-improve-your-pc-for-windows-vista-xp-server-2003-and-2008.aspx

Windows Vista , , , , ,

Windows Vista shows black screen and the cursor before log in.

2. May 2008

Had an interesting one yesterday, my bosses Vista laptop booted as per normal, making all the right pictures until just before the log in prompt popped up, then a black screen in what looked to be VGA graphics with the white default arrow cursor.

Corrupted graphics drivers, I thought. A quick boot into safe mode...but no, the same black screen and over-sized pointer.

No problem, Last Known Good Configuration will save my day...except that LKGC points are set when the OS manages a successful boot, and Vista had, in it's own opinion, successfully booted. The same problem occurred.

Googling around I found hundreds of posts describing similar problems, fewer, but still quite a lot had the same problem. There were no solutions for the symptoms that I was facing; that always begins to worry me because it's very unlikely that I can fix something that no-one else can!

After several more hours Googling and trying various different recovery options, I came accross a very succinct and to the point technet article - KB946532. Apparently Vista's fairly unknown Transactional NTFS has a bug which, if you're unlucky enough to see, will "occur because of file system corruption within the $Txf directory. This corruption causes a deadlock condition between the Transactional NTFS (TxF) process and the Autocheck process." In short, you're screwed.

System Restore points don't fix this problem. There's no way of preventing this error, which will render your Vista install inoperable. Helpfully, MS suggest you reinstall Vista in parallel to your current install. They also mention that it's fixed in SP1, which is the most compelling reason to install SP1 that I've heard.

Right now I feel a little like I'm playing Russian roulette with my fleet of Vista laptops, but do I really want to force an early adoption of SP1?

Windows Vista , , , ,

Installing on Vista: Error 1327 invalid drive when using mapped drives

26. November 2007
Incredibly irritating error when you go to install under your user account when you’re using mapped drives for your documents. All our domain users have a userfolder on the server, it’s mapped as z:\ and there is a folder redirection set up. It’s pretty standard in a corporate/domain environment, so why does it cause so many Vista installations to fail?

 

This is something I’ve run into time and time again and There are a couple of things you can try…sometimes they work individually, sometimes not!

  1. Reset your “My Pictures” location to the default (yes, that is stupid; no, I don’t know why Unrelated Program X wants to install something into “My Pictures”).
  2. Edit your registry (BACK IT UP FIRST) to remove references to your mapped drive.
    1. Run Regedit.
    2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    3. Change any references that use the drive letter to use the %USERPROFILE% variable.
    4. Restart.
  3. If you’re using UAC (User Account Control) you might need to map the network drive as the administrator. This is a pain in the @$$ because you have to disconnect the drive under your user account first. Of course, if you’ve got ANY documents open, this will upset your profile. Anyway, steps for that:
    1. Disconnect the currently mapped drive.
    2. Open the command prompt as the administrator. Type "net use \\[server]\share and check that it’s mapped by typing “net use”.
    3. Open explorer and navigate to your shared folder and right click, use the “Map Network Drive” wizard to map the share under your user profile.
    4. If all above fails (as in my case), your only option is to log in as a user that doesn’t map drives (machine local admin works for me, but then you have to enable that user as it’s disabled by default. You also have to provide a password for it - don’t forget to disable again after an install.)
  4. I could rant about how rubbish this is, but to be honest I am to hacked off at wasting my afternoon trying to work around this.

Windows Vista ,

I’m qualified!

18. October 2007
It’s been a while since I’ve posted here, that’s for various reasons, one of which was that I have been preparing for, and taking, my MCSA exams. So here it is…
  • MCTS Windows Vista, Configuring (70-620) 
  • MCP Managing and Maintaining a Windows Server 2003 Environment (70-290)
  • MCP Implementing, Managing and Maintaining a Windows Server 2003 Network Infrastructure (70-291)
  • CompTIA Security+ (SYO-101)

Which all add up to an MCSA Windows Server 2003 Security+. I’ll add the links to my online certificates as MS sort them out.

Windows Server 2003, Windows Vista

iTunes crashes on startup under Vista

12. July 2007

I had an odd problem today, I logged on to begin my day’s work and plugged in my iPod as per normal. iTunes crashes, Vista tries to recover. iTunes closes. iTunes opens. iTunes crashes. Vista tries to recover.

As you can imagine that gets tiresome, so I tried repairing iTunes, reinstalling iTunes, installing older versions of iTunes, all to no avail. The solution in the end was to remove Quicktime and do a fresh install. I’ve not managed to find what caused the crash, so I’m assuming Quicktime has corrupted somehow. It’s possible the Apple Software Update was trying to upgrade it an crashed leaving it in a non-running state - but that’s just speculation.

Digital music, Windows Vista , ,

Installing Visual Studio 2003 SP1 on Vista

28. June 2007
I’ve finally cracked the installation problems with VS 2003 SP1 on Vista. The problem seems to be that the SP must be installed under the same credentials that Visual Studio was installed. I.e. I installed Visual Studio under the domain administrator credentials, but I run my day-to-day under a standard user credential. When installing the SP1 I was elevating my standard user credential rather than running as the domain admin. I don’t know what difference that makes to anything, but it’s worked!

 

 Where was that purchase requisition for 2005?

ASP.NET, Windows Vista ,

Windows Server 2003 Admin tools under Vista

7. June 2007

If, like me, you want to administrate your Windows 2003 servers from your Vista workstation, you may find that you recieve an “MMC could not create snap in” error when you open one of the admin tools, it also manifests as corrupted graphics within some MMC Add-ins.

It appears that the dlls are not registered correctly, there’s a KB article from Microsoft that contains a script to reregister the dlls. It’s a simple fix:

  • Copy and paste the following script into a text document, save it as RegisterAdminPack.cmd
  1. @echo off
  2. REM RegisterAdminPak.cmd
  3. REM (c) 2006 Microsoft Corporation. All rights reserved.
  4. set filelist=adprop.dll azroles.dll azroleui.dll ccfg95.dll
  5. set filelist=%filelist% certadm.dll certmmc.dll certpdef.dll certtmpl.dll
  6. set filelist=%filelist% certxds.dll cladmwiz.dll clcfgsrv.dll clnetrex.dll
  7. set filelist=%filelist% cluadmex.dll cluadmmc.dll cmproxy.dll cmroute.dll
  8. set filelist=%filelist% cmutoa.dll cnet16.dll debugex.dll dfscore.dll
  9. set filelist=%filelist% dfsgui.dll dhcpsnap.dll dnsmgr.dll domadmin.dll
  10. set filelist=%filelist% dsadmin.dll dsuiwiz.dll imadmui.dll lrwizdll.dll
  11. set filelist=%filelist% mprsnap.dll msclus.dll mstsmhst.dll mstsmmc.dll
  12. set filelist=%filelist% nntpadm.dll nntpapi.dll nntpsnap.dll ntdsbsrv.dll
  13. set filelist=%filelist% ntfrsapi.dll rasuser.dll rigpsnap.dll rsadmin.dll
  14. set filelist=%filelist% rscommon.dll rsconn.dll rsengps.dll rsjob.dll
  15. set filelist=%filelist% rsservps.dll rsshell.dll rssubps.dll rtrfiltr.dll
  16. set filelist=%filelist% schmmgmt.dll tapisnap.dll tsuserex.dll vsstskex.dll
  17. set filelist=%filelist% w95inf16.dll w95inf32.dll winsevnt.dll winsmon.dll
  18. set filelist=%filelist% winsrpc.dll winssnap.dll ws03res.dll
  19.  
  20. for %%i in (%filelist%) do (
  21.  echo Registering %%i …
  22.  regsvr32 /s %%i
  23. )
  24. echo.
  25. Echo Command Completed
  • Run a command prompt under admin privileges (Start menu > All Programs > Accessories > Right click Command Prompt and select “Run as administrator”)
  • Navigate to where you saved RegisterAdminPack.cmd, and run it.

Simple as that. Some people find that the admin tool shortcuts aren’t installed under administrative tools, that didn’t happen to me, but you can either reinstall the tools or manually create the shortcuts by opening a new MMC window (Start > Run > mmc) and then adding the relevant snap-in. You can then save your console and create a shortcut wherever you desire.

Windows Server 2003, Windows Vista, Admin Tools , , , ,

Installing Visual Studio 2003 on Vista Enterprise

4. June 2007

It’s not as easy as you might imagine if you’re going to be developing on a local machine. The pre-requisites include IIS and FrontPage Server Extensions which will need installing.

Install IIS on Vista

Go through Control Panel, Programs and Features, then select “Turn Windows features on or off” on the left hand menu. The basic installation of Vista from the control panel will not be sufficient for a VS install, you must add IIS Metabase Compatibility (you’ll see why later), .NET Extensibility, ASP.NET, ISAPI Extensions, ISAPI Filters to the options. Don’t ask me why they didn’t have .NET support, one of their flagship products, install as default, I’d hazard a guess at reducing surface area to add to the ”secure by default” ethos. You can also script the installation and do a little more customisation, if that’s your need then try this TechNet article.

Installing FrontPage Server Extensions

If you want/need FrontPage Server Extensions, you’ll need to install them from here. Installing is straight forward, so I won’t bore you with that, the only thing to note is if it asks for a restart at the end, don’t say no because the installer will fail and roll back. Note that this is a beta version of the 2002 FPSE - don’t install it unless you’re aware of the consequences of installing beta software. Also note that there’s no new functionality, it’s the same version as the one used for Server 2003, made available for Vista.

Installing Visual Studio 2003

Now you can go ahead and begin the Visual Studio 2003 install. It will still ask you for the prerequisites disk, and most likely still want FPSE to install - let it do it’s thing.

Once you’re installing VS proper, you’ll recieve a “known compatibility error” warning, according to Microsoft you’ll have to run as an admin on your local machine. Since this is crappy security practice, you can “run as” (right click the icon - “Run as administrator”) or edit the shortcut to always run it as an administrator. This is the easiest way in Vista - navigate to your VS icon in the start menu, right click and select “Properties” and then select the “Compatibility” tab. Under “Privilege Level”, check “Run this program as an administrator”.

There is an MSDN page describing all the VS2003/Vista compatibility issues.

 Getting ASP.NET 1.1 running

 The other gotcha is that you need to follow some steps to get ASP.NET 1.1 running and debugging. Follow the steps in this IIS.NET article. I didn’t run into any issues going through those steps. You’ll find that ASP.NET 1.1 is already installed from the VS Pre-requisites, you will need to install ASP.NET SP1 and the security update - then restart!

Once they’re in it’s a simple matter of adding the ISAPI filter using this command (install using admin privileges):

  1. runas /user:domain\adminuser "%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i"

adding the following to your machine.config (windir%\Microsoft.NET\Framework\v1.1.4322\config\machine.config) This isn’t straight forward as the folder is protected by Vista and requires confirmation to do anything - you’ll find when you go to save it you get errors and file not found - the solution is to rename machine.config to machine.old.config, open it, edit and save it to your desktop. Then manually copy it to the folder, confirming when asked.:

  1. >>
  2. name=“system.webServer” type=“System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″>
  3. >

and finally, use this command (or use the IIS Admin panel) to set the default web site to use the ASP.NET 1.1 application:

  1. appcmd set app "Default Web Site/" /applicationPool:"ASP.NET 1.1"

Updating Visual Studio .NET

 Now that you’re getting bored of all this and wondering why you haven’t upgraded to VS 2005, it’s time to download the Service Pack for Visual Studio. I found that I couldn’t install the service pack because it wants the install source…I gave it the install source to no avail! If you manage to get around this, please post to let me know.

 That’s it - all done.

All being well, you’ve now got a working installation of Visual Studio 2003 on your Vista desktop. Sure, it was a faff, sure, you wish you’d upgraded, but think of all that work you can do now. I’m sure you could write a script for all that or optimize some of those steps, but that’s how I muddled through

Visual Studio, Windows Vista

Fixing your Windows Vista MBR

30. May 2007

I recently installed Vista as a dual boot with my old XP installation, while I transferred things over and made sure I could do all I need to do with my new Vista install. It came to the point when I needed to remove XP and solely rely on Vista. Some might say that’s brave, others foolish, others still insane. Whatever your opinion, I needed the HD space and was having no problems with Vista, so I bit the bullet.

Dusting off Partition Magic I set it to remove the old XP partition, resize the new Vista partition, make sure the Vista partition was a Primary partition rather than a logical one, and then reboot into Vista.

The outcome of this is that I wrecked my boot. XP is gone. Vista is there and readable, but there is no boot. All this signalled a problem with the MBR (master boot record). No problem in XP, it’s a simple boot into the Recovery Console and a fixboot or fixmbr. Foolishly I expected the same simplicity for my Vista install. No. Niet. Nein. Non.

 After some serious digging I found this KB article 919529 which outlined the use of Bootsect.exe and BCDEdit.exe to restore your MBR after you’ve installed an older version of Windows. At least it showed me where the tools I needed are!

  1. Boot from your Vista DVD and click the Repair option. It’ll search for Vista installs and then give you an option of which one to repair. Try the automatic boot repair first, because you can really screw up your hard disk if you don’t know what you’re doing. If that doesn’t work, it’s likely that your MBR is bad or missing.
  2. Fire up the Command Prompt from the Repair screen.
  3. Try running “Bootrec /RebuildBcd
  4. I used Bootsect.exe to repair the Vista boot loader. Note that this tool is not on your Vista installation, but on your Vista DVD. To repair your MBR and restore the Vista Bootloader, use the following command: “d:\Boot\bootsect.exe /NT60 All
  5. Now you need to check that your bootmgr (think Boot.ini) has the correct entry in it for your OS(s). BCDEdit is located on your Vista install, so navigate there - mine is on my C drive. I used the following command to view it: “c:\Windows\System32\BCDEdit.exe /enum all /v
  6. For me, there were no issues with my Boot.ini, so I didn’t have to edit, delete or create any entries. This might not be the case for you, for help using BCDEdit, use BCDEdit.exe /? for the help menu

 Other reference:

http://technet2.microsoft.com/WindowsVista/en/library/08d64d13-4f45-4a05-bd86-c99211a93dd91033.mspx?mfr=true

http://support.microsoft.com/kb/927391

Windows Vista, Windows XP , , ,