Domain Controller Wont Boot: Stop Code ‘0x00002e2’

KB ID 0001494

Problem

I had this problem after a VMware host upgrade last night, this domain controller would not boot, I tried ‘Last Known Good Configuration’, I tried ‘Safe Mode’ it would not boot. More out of desperation than procedure, I tried to boot to ‘Directory Services Restore Mode’ and it booted up (hooray!) I tried all the client’s usual passwords, and could not log in, I messaged them to ask for the DSRM password, and tried all the ones they sent me, it seems I was defeated!

They had other domain controllers, and their critical systems were up, so I arranged for this server to be restored the following morning from tape.

A lot of you will (I hope) know your DSRM password, so you have less problems that I had, so you can skip reseting the DSRM password part.

Reset DSRM Password (From Boot Disk)

If you Google resetting the DSRM password you get a ton of posts telling you to use ntdsutil, which is great if you can logon, but I could not. I’ll let you into a secret: The DSRM password is actually the LOCAL administrators password on the Domain Controller, and resetting the local admin password, (using a Linux boot disk, {don’t panic it’s simple!}) well we have been able to do this since the days of NT4! (DON’T PAY FOR A UTILITY TO DO THIS).

To download the boot disk and see how this is done follow the instructions I’ve already written in THIS POST. The only difference is, I chose to {blank} the password, rather than reset it, (you can reset it afterwards using ntdsutil if you want to).

Select option 1: Clear (blank) user password;

Boot Into DSRM Mode and Repair Active Directory

You can now boot into DSRM mode, (if you don’t see these options Press F8 as the server boots).

As soon as you enter ‘administrator’ and then click in the password box, the ‘Sign in to‘ option will change from the domain name to the domain controllers name. This usually happens on all machines, that are NOT domain controllers, but in this case, it’s expected behaviour, (as we will be logging in with a LOCAL password.) Remember I blanked the password, so I’m leaving it empty.

First let’s take a backup of AD. Open a command window, and execute the following command;

[box]

xcopy C:\Windows\NTDS\* C:\Backup\NTDS-Backup /E /Y /V /C /I

[/box]

Then execute the following commands;

[box]

cd C:\Windows\NTDS
ren *.log *.log.old
esentutl /p C:\Windows\NTDS\ntds.dit

[/box]

When prompted; CLICK OK.

Now run the following commands;

[box]

ntdsutil
activate instance ntds
files
compact to C:\Windows\NTDS\TEMP
quit
quit

[/box]

As it’s telling us (above), we now need to copy the compacted and repaired database, over the top of the live database, and then get rid of the logs. To do that, run the following commands;

[box]

copy "C:\Windows\NTDS\TEMP\ntds.dit" "C:\Windows\NTDS\ntds.dit"
Yes
del *.log
del *.log.old
shutdown -r -f

[/box]

The server will reboot, and boot back into Windows as normal.

Related Articles, References, Credits, or External Links

A big thank you to Alex at iThinkVirtual.com, for the AD repair procedure, I would not have got over  the line without his excellent ‘Fixing a corrupt Domain Controller’ post.

Safari: This connection Is Not Private Loop

KB ID 0001462

Problem

This has been bugging me for a while, I use Safari for most things, but recently going to an https (SSL secured) web page that uses a self signed, or expired certificate, give me this;

Now this is to be expected, normally you click ‘visit this website‘ it asks for you password, and away you go. However now it doesn’t, it loops you back here again and you can go round many times, until you give up and use FireFox.

Solution

This stung me yesterday when I wanted to get on the office MFD. The fix is easy, open a new private browsing window  (File > New Private Window). Then go to the same URL, what’s more, once you have been to that URL, it  now works in normal Safari

Related Articles, References, Credits, or External Links

NA

Audacity – Looping Audio (Repeating Sections)

Looping Audio KB ID 0001290

Problem

Those that know me, will know I’ve been struggling to learn the guitar over the last few months. Recently my teacher, (the extremely talented Mr John Robson,) gave me some tab to learn, and helpfully recorded a backing track. 

Now it’s only 8 bars long, and not particularly fast, but I was still struggling to keep up. 🙁 Like all practical skills I learn by good old EDIP, (Explanation Demonstration Imitation Practice). However I don’t multitask well, Mmm thats not strictly true, I don’t multi-problem well! In an effort to break the problem down into smaller problems I wanted to just play one problem at a time! This needed me to play and loop a section at a time, to at least give me a chance!

 

A number of weeks ago I had asked my tutor how to do this and he said, “Use Audacity, it’s free as well.” 

Solution: Looping Audio

Open you audio track in Audacity and ensure you have the right selection tool chosen (1). Click and drag within the track (2), (not on the top of the track or it will annoyingly autostart playing from where you clicked). Finally, press and hold shift, and press the space bar. (I read some posts that said shift and click also works but it does not on my mac).

 

Related Articles, References, Credits, or External Links

NA

Rename / Change all File Extensions In a Folder and All Subfolders Recursively

KB ID 0000896 

Problem

I long time ago this site was hosted in my dining room, on a PC under my desk. I was running Windows and IIS. When I moved the site to a hosted Apache Linux server, I discovered that Linux is a little more rigid on its rules for file extensions. For example in Windows .JPG and .jpg is the same thing, but on a Linux box that’s NOT the case.

As I’ve used the Windows Snipping Tool a lot in the past my older images have a .JPG or .PNG extension, if your websites URL’s point to filename.jpg, then the URL will work in Windows but it WON’T work on a Linux web server (in my case Apache).

I fixed all the broken URL’s a long time ago, but the file extensions remained. This annoyed my Technical OCD, so this afternoon I decided to rename all the .JPG files to .jpg, and all the .PNG files to .png.

Note: I changed all the URL’s with a a simple file and replace in Dreamweaver.

Solution

To rename all the files in a folder simply use the ren or the rename command;

[box]

ren *.JPG *.jpg
Note: If you wanted to change all the extensions to something else that's fine too e.g.

ren *.htm *.txt

[/box]

The limitation is you cannot do the same if you have folders and subfolders, you need to rename all the file extensions recursively. To do that use the following syntax.

[box]

forfiles /S /M *.JPG /C "cmd /c rename @file @fname.jpg"

Note: As Above, if you wanted to change all the extensions to something else that's fine too e.g.

forfiles /S /M *.JPG /C "cmd /c rename @file @fname.jpg"

[/box]

So to fix my problem I only needed two commands.

Related Articles, References, Credits, or External Links

NA

Server 2008 R2 – Hangs “Preparing to configure Windows. Do not turn off your computer”

KB ID 0000657 

Problem

Saw this today on a Windows 2008 R2 Server, post reboot it just hung like this.

 

Solution

1. At first I thought this was the problem, but a CTRL+AL+DELETE didn’t work.

2. A Google search prompted me to connect to the ‘services’ from another server to see if the Windows Modules Installer Service was stuck stopping or starting, but that was OK as well.

3. It was the client’s Virtual Center server so I could afford to be a bit reckless (I could build them a new one and have it up and running, with no user downtime in about an hour). So I powered it off, rebooted and pressed F8, to see if it would boot into safe mode, then this happened.

.

Failure configuring Windows updates. Reverting changes. Do not turn off your computer.

It then rebooted, and hung at the original screen, I was pondering my next move, when the screen changed to the one above , and it rebooted again. I was concerned that now It was in a reboot loop.

4. After a few more reboots it changed to applying settings, then gave me the logon screen.

5. I then ran a manual Windows update, and it rebooted fine.

 

Related Articles, References, Credits, or External Links

NA

IE Crash / Restart Loop

KB ID 0000329 

Problem

I downloaded the IE9 Beta today to give it a test drive and maybe write a review for the site, and it failed miserably and got stuck in a crash loop.

Error: Internet Explorer has stopped working

In fact I had to kill it with Task Manager as it kept re-spawning new instances that also crashed.

 

Solution

1. Launch the new IE9 in “Extensions off” mode, Click Start > Type in “iexplore.exe -extoff” {enter}

2. IE9 will launch in “Extensions Off” mode > Click “Manage add-ons”.

3. Select all the Add-ons (Select one and Press CTRL+A) > Then Select “Disable All”.

4. Now launch IE9 and it should launch correctly.

5. If you want you can slowly enable all the add-ons one by one, to find out which one was causing the problem.

Note: You may also see Event ID 1000 each time it crashes.

Error:

Faulting application name: iexplore.exe, version: 9.0.7930.16406, time stamp: 0x4c7e0414
Faulting module name: IEFRAME.dll, version: 9.0.7930.16406, time stamp: 0x4c7e048e
Exception code: 0xc0000005
Fault offset: 0x00077c96
Faulting process id: 0x104c
Faulting application start time: 0x01cb596dc320eb8f
Faulting application path: C:Program Files (x86)Internet Exploreriexplore.exe
Faulting module path: C:Windowssystem32IEFRAME.dll
Report Id: 012c705c-c561-11df-8a41-705ab694ed42

Footnote

Some forums are suggesting that enabling “Use software rendering instead of GPU rendering” will also solve this problem.

Once I got it working, here’s what I thought of it, Internet Explorer 9 Review.

 

Related Articles, References, Credits, or External Links

NA