Brian's Virtually Useful Blog

Domain Controller Problems & AD DNS not syncing.

August 30, 2008 · 1 comment
Ok, so here is a tip for all of you, if your going to vmotion a Domain Controller, you gotta power it off first. Seems to be smart, but I prefer to learn things the hard way. Apparently this changes some internal things, long story short, this DC had to be completely blown away and rebuilt. The first thing I noticed was that for some reason AD Integrated DNS was no longer syncing. I ran a dcdiag since I didn't see much of anything in the logs. Basically all it told me was that I needed to run adprep /rodcprep. I tried since it seemed odd it would still need that (I upgraded to 2008 a while back, and thought I had done it.). Doing this gave me some new errors "Adprep could not contact a replica for partition DC=DomainDnsZones,DC=mydomain,DC=suffix.
Adprep encountered an LDAP error.
Error code: 0x0. Server extended error code: 0x0, Server error message: (null).
Adprep failed the operation on partition DC=DomainDnsZones,DC=mydomain,DC=suffix. Skipping to next partition. "

Now the fix for this is several things. The first two are easy of course.
1) Seize the rolls it held.
http://www.petri.co.il/seizing_fsmo_roles.htm
2) Blow away the old info from ntdsutil, ADSIEdit, & DNS.
http://www.petri.co.il/fix_unsuccessful_demotion.htm
3) Here is the really fun part. When seizing the roles in 2008(my first time seizing in 2k8) it left some stuff that had to be modified in ADSIEdit
Thanks to drewhill.net for the info,
http://drewh70.wordpress.com/2008/05/15/error-message-when-you-run-the-adprep-rodcprep-command-in-windows-server-2008/

Error message when you run the "Adprep /rodcprep" command in Windows Server 2008
“Adprep could not contact a replica for partition DC=DomainDnsZones,DC=Domain,DC=suffix”“Adprep could not contact a replica for partition DC=DomainDnsZones,DC=Subdomain,DC=Domain,DC=suffix”“Adprep could not contact a replica for partition DC=ForestDnsZones,DC=Domain,DC=suffix”
Read: Error message when you run the “Adprep /rodcprep” command in Windows Server 2008: “Adprep could not contact a replica for partition DC=DomainDnsZones,DC=Contoso,DC=com”
Note: I could not get the VB script that Microsoft provided in the above KB article to work. I received the following error, “fixfsmo.vbs(1, 1) Microsoft VBscript compilation error: Expected statement”.
Here’s the way I ended up fixing the problem:

Open ADSIEdit
Connect to DC=DomainDnsZones,DC=domain,DC=suffix
Expand it and select CN=Infrastructure
Right click, click on Properties and look at the fsmoRoleOwner attribute. In my case it was referencing a deleted domain controller:
CN=NTDS SettingsADEL:0db95bd9-0a15-46d8-9665-951689a3c7f9,CN=PFCSRDC1ADEL:5bcf835e-adb2-4eba-9a3e-bccc9611fc78,CN=Servers,CN=PFCS,CN=Sites,CN=Configuration,DC=pfcs,DC=farm
This means that AD has a bad value for the infrastructure master because the infrastructure master for the referenced partition or partitions has been forcefully demoted or is offline.
You will need to copy the correct path to the infrastructure master into the fsmoRoleOwner value. To do this, first determine what server your infrastructure master is supposed to be using AD Users and Computers.
Once you have the , go back into ADSIEdit.
Connect to the Configuration partition.
Expand CN=Sites, CN=, CN= and go to properties of CN=NTDS Settings.
Edit the distinguishedName attribute, select the value and copy it into the clipboard. (cut off the first crap, only keep CN=NTDS Settings... erase all those crazy numbers and everything before it)
Now go back to the Infrastructure object underneath DomainDNSZones, and copy the value you got into the fsmoRoleOwner attribute.
This will have to be done for each partition with a bad value.
After AD has been cleaned up rerun the “Adprep /rodcprep” command.

After Migrating an ESX VM (local storage to local storage) I get an error "The parent virtual disk has been modified since the child was created"

July 30, 2008
Basically the .vmdk files for the C: and D: drives lost their connection with the snapshot vmdk files. I was removing some snapshots to try and make the migration work smoother, and apparently it forgot what we were doing part way through. I used this site to find out how to do basic CID repair

http://sanbarrow.com/vmdk-basic-CID-chain-repair.html

http://sanbarrow.com/vmdk/vmdk-when-its-too-late.html

Worked like a champ, now my VM's are alive again on the new ESX Server.

ISA 2006 Reverse Proxy dies with 23006 error

July 28, 2008
So in an attempt at High(er)-availability I setup a proxy server load balance on my IIS7 Web Farm. I debated between using NLB or ISA, I have always been an ISA fan since back in the 2.0 days, so I went with it. However about once a week all of the websites being served with ISA report a 500 error. I am using a fully patched ISA 2006 server on a 2003 R2 SP2 machine. I noticed in the application event logs, this: Event ID: 23006

Description:The Compression filter cannot handle a response because the allocated memory currently used for compression reached its limit. The memory allocated for compression is specified by the following registry values under the HKLM\Software\Microsoft\RAT\Stingray\Debug\W3Filter key: COMPRESS_MEMORY_ALLOC_MBYTES (by default, 256) and COMPRESS_MEMORY_POOL_BLOCKS (by default, 200).

To resolve this I went into the general tab at the bottom of ISA manager and disabled HTTP Compression, but I did find a KB article about this bug. http://support.microsoft.com/kb/947521

GPO VPN connections

July 15, 2008
In Group Policy i'm trying to setup a VPN connection under the "Network Options" Windows Settings Preferences. Everything almost works great, but for some reason IPv4 and IPv6 are unchecked or not enabled on the clients after they receive the policy. I can't seem to find a way of making this work. I found this article of someone having the same issue, but nobody knows how to fix it. http://www.eggheadcafe.com/software/aspnet/32624228/configuring-vpn-using-gro.aspx

Any ideas?

Weird DHCP issue ..resolved

July 10, 2008
Ok, so a user reports vista wants them to identify a new network i've never heard of as "home,work, or public". This isn't our corporate domain (which their machine is a member of), and this is happening over wired connections. To put it mildly, this gets my attention. I look at his network adapter settings, it's all setup to DHCP, nothing hard coded. doing a ipconfig /all and looking at his registry, he is receiving a different DHCP server than I am handing him, and his "DhcpDomain" as it is referred to in the registry is not my domain, but this newfound mystery domain. The crazy thing is that the "DhcpServer" is MY server. I verified with wireshark that my dhcp server is giving him the address directly, and that on his end, he is receiving DHCP from me, so what gives? where is the incorrect data coming from? In the packet capture I noticed something very interesting, there are Dhcp Inform packets coming from a random PC on my corporate lan.

Basically the answer is, someone created a "test domain" and installed DHCP server, configured a scope, and then disabled that scope, but did not delete the scope or uninstall/disable DHCP Server. Due to a microsoft bug, http://support.microsoft.com/kb/944200, it will still respond to these DHCP inform packets, and append/overwrite the data my DHCP server is sharing.

Good luck if this happens to you. I am going to go drink a Guinness.

More IIS FTP7

July 1, 2008
Ugh, so after a couple hours of frustrating results trying to FTP into my web cluster, a friend brought the obvious to my attention, windows 2008 firewall is blocking FTP by default, and that's why I can only reach it locally. Do the following to turn it off for anonymous(non SSL) FTP.

netsh advfirewall firewall add rule name="FTP (no SSL)" action=allow protocol=TCP dir=in localport=21
netsh advfirewall set global StatefulFtp enable

Thanks to the following blog
http://blogs.iis.net/jaroslad/archive/2007/09/29/windows-firewall-setup-for-microsoft-ftp-publishing-service-for-iis-7-0.aspx

132GB of ram in a workstation

July 1, 2008 · 2 comments
16 Ram banks. I didn't think this was possible..

I just hope this thing will run ESX 3.5

http://h10010.www1.hp.com/wwpc/us/en/sm/WF25a/12454-12454-296719-307907-296721-3432827.html

Maximum memory
128 GB 667 MHz DDR2, 16 DIMM slots

What time does FedEx arrive today?

Word 2007 Prints garbage on envelopes

July 1, 2008
Well if your printing to an envelope and it looks like your printing in windings, in my scenario it turns out you may have a corrupt default font type (+Headings), try another font, replace the bad font if you still want to use that one.

asp (not dot net) troubleshooting is awful in 2008/IIS7

July 1, 2008
Well I found that when upgrading older applications written in the original asp to 2008/IIS7 can be very difficult as it appears no matter what you do, all errors return "500 Server error". I did read if you change the ASP options to show "Send Errors to Browser" and disable "HTTP Friendly error messages", and do this locally on the server, no matter what..you still only get "500 Server error". So the really cool error reporting and repair suggestions work great for asp.net, but don't bother with them for good old asp pages. The ASP CDO emailer page I was modifying had perfect code, but the SMTP server was rejecting my connection, and blamo, 500 server error.