Query DNS with wildcards

Ever wanted to know the IP-addresses of all hosts that have names ending in “-vm”? Powershell, Quest’s AD commandlets and PSCX allow you too:

#requires –PsSnapIn Quest.ActiveRoles.ADManagement
#requires –PsSnapIn PSCX
get-qadobject -name $args[0] -Type dnsnode | %{resolve-host $_.name}

Save as a .ps1 file and invoke .\get-dnsinfo.ps1 *-vm