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.

  6. After his death, the business was successfully carried on by his three sons.

    The world is really shrinking and ideas are being shared around the globe at a rapid pace.

    The Fashion Industry is totally focused on how
    people look and larger people do not figure on mainstream fashion’s radar.

  7. It is not better to select high-heeled shoe, if you are an obese.

    The Unitron website includes detailed description of the features and benefits from this
    product. Fresh pairs of UGG products arrive in latest designs and fake boots are replicas of these originals.tadalis

  8. Meine Stammanrufer sagen, dass ich am Telefon geil stöhnen kann.

  9. Eine Erfrischung nach dem Sex kann nie schaden.

  10. Sein Outfit: sportlich chic – Boss Jackett, J Brand Jeans und Sneaker.

Leave a Reply

Your email address will not be published.

© 2018 @jgoldschrafe

Theme by Anders NorenUp ↑