2

I have a new client that is a hard position with their previous IT management company. The previous company is refusing to release any administrative usernames or passwords for any computer. This is only a problem for one, the PDC which is also a database server for their POS system. This is a crappy situation to be in.

I'm a linux guy by trade so I'm not super familiar with Windows environments. I know that I can image the disks and then load it into new hardware, I know I can boot from the "Offline Windows Password & Regitry Editor" boot cd and rewrite the admin password. However, what I don't know is if that admin account is only for the local machine or if it's for the domain as well.

I setup a test Windows Server 2008 R2 PDC at the office and proceeded to rewrite the password using the disk mentioned above. However, upon rebooting I still could not login to the local computer. The windows server wanted me to login as DOMAIN/Administrator and I only over wrote the password for LOCAL/Administrator. So I'm somewhat at loss on how to gain access to the system. How can I overwrite the password for the DOMAIN/Administrator account? Or the best question is, given complete physical access how does one gain access to a Windows Server Primary Domain Controller?

2
  • 4
    There's no such thing as a PDC - NT4 was the last OS to use that term. There is a PDC Emulator though, but I think you just mean "Domain Controller" May 18, 2011 at 1:29
  • The easy and indeed the only reasonable answer is "Hire a guy." Or as the British would say "Get a man in." I applaud your attempt to figure it out and would be inclined to do the same but this is a problem that can be solved for no more than $1,000. Oct 10, 2017 at 21:06

3 Answers 3

9

I'll start by expressing my agreement with other posters who are cautioning you that you may be causing more harm than good tinkering with low level stuff like this outside your area of expertise. You can really mess things up if you're not careful and change a server that's working into a smoking pile of wreckage. Proceed only with caution.

Your offline password reset has reset the password for the local "Administrator" account. This account is only used for a Directory Services Restore Mode as Shane Madden points out. You should be able to press F8 during boot, select Directory Services Restore Mode, and logon with "Administrator" and the password you set.

Once you're logged in you can use a trick to change the domain Administrator account on the next boot. Open an elevated command prompt and execute the following: sc create resetpw binPath= "C:\WINDOWS\system32\net user administrator p@ssw0rd" start= auto (Be sure to get all the spaces after each of the equals signs.)

Reboot the machine in normal mode. This "service" you created will execute and reset the "Administrator" password to, in this case, "p@ssw0rd" (w/o quotes). It's sensible to use a "strong" passwork like that one rather than, say, "password" because there may be a domain password policy that prevents you from resetting the password to a "weak" password.

You should be able to logon with the domain Administrator credential after you boot. You can remove your "service" by executing sc delete resetpw from an elevated command prompt.

(I don't have a scratch W2K8 domain controller sitting around right now and I'll freely admit that I haven't tested what I'm describing above on W2K8. It works on W2K3 and I strongly suspect it'll work fine on W2K8, too.)

2
  • +1 for the (slightly scary) but useful sc password reset.
    – gravyface
    May 18, 2011 at 12:51
  • Yeah, +1 for the command line solution. May 19, 2011 at 4:45
7

Well, first off: sounds like your client needs to get the lawyers involved.

On the technical side of things: Windows domain controllers do not have local users after being made into domain controllers. So, there's no way to log in as a local user whatsoever, with one exception: Directory Services Restore Mode.

If you press F8 during boot (right as Windows gets started), domain controllers have a special option for Directory Services Restore Mode. When booted into that mode, one "local" account is accessible: Administrator. This is the DSRM account that is set when the domain controller is originally promoted, but should have been reset by your password change on the local database.

This should get you into the system - reset the domain Administrator account, and then reboot back into normal mode.

1
  • Yes, that step has already happened thankfully. Lawyers are getting ready 'just in case' which is also the reason for this task to be researched. Just in case. May 19, 2011 at 4:48
6

Refer the client to someone who actually knows the technology that they need help with? If were an electrician, and had a client that needed a plumber, I wouldn't be buying pipe wrenches and Time-Life DIY books on my way to their site.

Not to sound harsh, but from the way you phrased the question (calling it a PDC, not knowing that a DC no longer has local accounts at all), you're out of your depth and will be doing a dis-service to your client.

4
  • Usually I would totally agree with you normal, however is this sense I have a lot of experience in these environments. Just not Windows. Look at it like switching from French to Italian. I had to learn French first and it was hard, but now picking up Italian will be easy! :) May 19, 2011 at 4:47
  • Sure, you should learn and you'll probably do well. Just don't use a client's needs to learn at their possible expense. Get a VMware or HyperV lab and learn Windows on your own.
    – mfinni
    May 19, 2011 at 12:39
  • Well yeah, as already stated "I setup a test Windows Server 2008 R2 PDC at the office and proceeded to rewrite the password using the disk mentioned above" May 19, 2011 at 17:04
  • 1
    "I had to learn French first and it was hard, but now picking up Italian will be easy!" You might have to spend a few years learning Italian before you take a job as a translator, though...
    – ceejayoz
    Oct 10, 2017 at 21:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .