As any of my readers know I check things on a daily basis, typically in the morning. As part of these checks I fire up Internet Explorer 7 and go to our Outlook Web Access page and log in.
Today I figured out how to do all of this from a PowerShell, which has already cut my daily monitoring duties down about 90%. This is a pretty simple oneliner that will test one OWA url. It does however require you to enter a password in a dialog box.
Test-OWAConnectivity -url https://mail.yourdomain.com/owa -mailboxcredentials:)Get-Credential domail\user)
After you run that it will ask you for the password of the user and report back success or failure.
3 comments:
I get the following:
Unexpected token ')' in expression or statement.
At line:1 char:75
+ Test-OWAConnectivity -url https://owa.casham.com/owa -mailbowcredentials:)G <<<< et-Credential domail\user)
Should be:
Test-OWAConnectivity -url https://mail.yourdomain.com/owa -mailboxcredentials:(Get-Credential domail\user)
OK, folks, here's the command line that actually works. Note all spelling, capitalization and punctuation is critical:
Test-OwaConnectivity -URL https://mail.yourdomain.com/owa -MailboxCredential (Get-Credential domain\user)
Post a Comment