Reverse-engineering the script provides some hints about what it does, but ultimately the behavior that it attempts to invoke occurs inside the "black box" of the Active Directory domain controller code itself, so troubleshooting it is going to be difficult (unless you've got source code access to AD... >smile<).
Essentially, the script prepares the domain for an runSamUpgradeTasks call, then executes it. This involves appending a value to the otherWellKnownObjects attribute of the "CN=Server, CN=System. DC=domain..." object in the directory, then making an LDAP call to modify the runSamUpgradeTasks attribute. That's supposed to trigger the W2K8 domain controller to automatically create its default groups and users in the directory and, as such, cause the missing account and group to be created.
I'm a little dubious of the script because the runSamUpgradeTasks reference calls for the balue to be appended to otherWellKnownObjects attribute to end with "...:X", whereas the script doesn't do that. Even so, you indicate that the "IIS_IUSRS" group was created, so that means that, presumably, the W2K8 DC "got the message" and created groups.
This one is fairly perplexing, and I'd opt to go to Microsoft Product Support Services on it. You're not going to spend a lot of money, but given the strangeness of the behaviour you're seeing they're probably the best people on the planet to help you.
Log into Windows with the old username, but prefix it with the computer's name.
For example:
PCNAME\Username
If that doesn't work, let us know and we can help with the next step.
If you can connect to the SQL instance, can you do so as Administrator? If so, all you have to do is change the owner of the DB. Right-click on the database, go to Properties, then Files, and change the owner there.
Best Answer
The local Administrator account becomes the domain Administrator account when you create a new domain. Also, when you install Active Directory, it removes any local accounts
You should be able to login with your administrator account using the
<accountname>@domain.com
orDOMAIN\<accountname
forms.See also: Local user accounts have disappeared after installing Active Directory and running dcpromo