How to use PowerShell to separate which email domains are from Google Hosted Servers
@(Get-Content domains.txt) | resolve-dnsname -Type MX -Server 8.8.8.8 | where {$_.QueryType -eq "MX"} | Select N
ame,NameExchange | Where-Object NameExchange -like *google* | sort-object Name -unique | Select Name | Out-File out.txt
ame,NameExchange | Where-Object NameExchange -like *google* | sort-object Name -unique | Select Name | Out-File out.txt
Subscribe to:
Post Comments (Atom)
About Me
- Clinton Rozario
- Hybrid specimen. Likes mixing abstract concepts into a heady cocktail. Likes mixing people together to see what they can do. Also, PC whisperer, Virus Terminator, entrepreneur in a couple of years, "nice guy", INTJ more...
0 comments:
Post a Comment