This script allows you to retrieve or set DNS server search order for multiple computers that belong 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 https://aka.ms/onescriptingallery