Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

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 10624

Trending Articles