I'm trying to automate this task of checking sites SPF records and was wondering if anyone have got around this. I need to be able to go to the site and then type in a domain name eg. stuff.co.nz
and get then click on Get SPF record
and output the result to a text file.
Below is what I've attempted to do. Any help would be appreciated.
$ie = New-Object -Com InternetExplorer.Application
$ie.Visible=$true
$ie.navigate("http://www.kitterman.com/spf/validate.html")
$ie.Document.getElementsByName("domain").value="stuff.co.nz"
$ie.Document.GetElementsByvalue("Get SPF Record (if any)").click()