Script Download: SetDNSServerSearchOrder.zip
http://gallery.technet.microsoft.com/scriptcenter/Set-DNS-Server-Search-6a3e3ede
This script allows you to retrieve or set DNS server search order for multiple computers that belongs to one organizational unit. It will only modify the DNS server search order for the network adaptors with static DNS server search order.
When you replace an old DNS server by a new one, IT administrators often want to retrieve a list of computers that are using old DNS server. After getting the list of these servers, IT administrators also need to replace the old DNS server search order with the new one.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery