Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Using -FILTER option

$
0
0

I am trying to filter out A records in DNS using the following line but want to add a second value to the -FILTER section -

 

Get-WmiObject -Class MicrosoftDNS_AType -NameSpace Root\MicrosoftDNS -ComputerName $DnsServer  -Filter "DomainName = 'domainname.com'" 

 

How do I add a second filtering option like OwnerName (Name of host record)?


Viewing all articles
Browse latest Browse all 8411

Trending Articles