Issues with Exchange 2010’s new-TestCasConnectivityUser.ps1 script

Today, I ran into this little bugger when trying to run Exchange 2010’s new-TestCasConnectivityUser.ps1 script to create test mailboxes for SCOM:

Most of the Internet pointed to this being a problem with the OU specified, and recommended manually specifying the OU (including the domain), but in our case, it didn’t help. I dug through the script and found where they had suppressed the error reporting:

Conveniently, they subsequently override $err instead of checking it and displaying something useful to the screen. Having been no stranger to Microsoft’s style of admin utility scripting since the IIS 5 days, I plodded forward and got this:

How peculiar. Where is it getting this database name from?

Oh. I see how this is going to be. Let’s try this my way instead.

Hello, working script.

Much better.


  1. Hmm it appears like your blog ate my first comment (it was extremely long) so I guess I’ll just sum itt up what I had written and say, I’m thoroughly enjoying
    your blog. I too am an aspiring blog blogger but I’m still
    new tto everything. Do you hhave any tips and hints for beginner blog writers?

    I’d certainmly appreciate it.

  2. I could nnot refrain from commenting. Veryy well

  3. For most women stimulation of the genital
    area will finally lead her to orgasm, and for most multiple orgasms.

    If she doesn’t seem to be heading that way as things hot up, just ask her: “There’s something you could do that’d give me so much pleasure. Women are becoming more and more masculine – drinking beer out of a bottle, swearing like a sailor, acting all tough and getting fatter every day.

  4. Great post, it has helped me much with my connectivity issues. Appreciate it.

  5. Thank you for the very informative post, it has been very useful to me.

Leave a Reply

Your email address will not be published.

© 2017 @jgoldschrafe

Theme by Anders NorenUp ↑