Posts Tagged Windows Server 2003
Get list of machines by OS type from Active Directory
Posted by Sheen in Windows Server on May 18, 2009
Here is an easy way of getting a list of computers that have a particular OS type from Active Directory using DSQuery.
dsquery * domainroot -filter “(&(objectCategory=computer)(operatingSystem=Windows XP*))”
The command above would give you a list of all computers that have a Windows XP operating system. For Windows Servers, change the command as follows:
dsquery * domainroot -filter “(&(objectCategory=computer)(operatingSystem=Windows Server*))”
The output of the commands above would look something like this:
samid
server1$
server2$
server3$
dsget succeeded
Note the ‘samid’ at the head and ‘dsget succeeded’ at the end and the ‘$’ at the end tail of every server name.
If you are like me, and you would like just get a nice clean output with only server names, you can run this command:
Setting up Split Brain DNS in Windows Server 2003
Posted by Sheen in Windows Server on April 28, 2009
Most organizations have internal and external DNS servers and in many cases, the default internal DNS zone may differ from the externally referenced DNS zone. For example, the internal DNS zone could be called domain.com and the external DNS zone could be called external.domain.com. The internal DNS zone could be active directory integrated and will try to respond to all queries for external.domain.com and queries will fail since there arent any entries for external.domain.com in the internal DNS server.
In such a situation, instead of maintaining both zones internally and externally, it would be better and safer (avoiding human error) to setup a Split Brain DNS server to automatically forward all DNS queries for external.domain.com to the publicly hosted DNS server.
This is how it is done:
Recent Comments