Quantcast
Channel: Exchange Server 2013 - Outlook, OWA, POP, and IMAP Clients forum
Viewing all articles
Browse latest Browse all 10580

MS exchange mx entry check using powershell

$
0
0

Hi,

There's this website that will be able to check the mx entries of our MS exchange server, and we want to write an exchange management shell script that will be able to emulate in doing so, below is the script;

$ie = New-Object -com InternetExplorer.Application
$ie.navigate("http://mxtoolbox.com/")
$ie.visible = $true
$doc = $ie.document
$tb1 = $doc.getElementByID("ctl00_ContentPlaceHolder1_ucMxActionInput_txtToolInputOldSchool")
$tb1.value = mydomain.com

When executing the .ps1 and ""Run it as Administrator", we get this error;

$tb1 = $doc.getElementByID("ctl00_ContentPlaceHolder1_ucMxActionInput_txtToolInputOldSchool")

You cannot call a method on a null-valued expression.

Server Info: IE 9 / Exchange 2010 / Windows server 2008 R2


Viewing all articles
Browse latest Browse all 10580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>