PowerShell: Finding Invalid Mailboxes in Exchange

Mailboxes can me marked as invalid in Exchange;  this usually doesn’t affect the day-to-day function of the mailbox (usually) but it will prevent any changes happening to the object (using the standard Exchange tools).  However, whatever is causing those mailboxes to be marked as invalid might cause problems for other systems that use that directory (such as Office 365 or a meta-directory connected system).

To find all the mailboxes which are marked as invalid you can use the following command from an Exchange PowerShell Window;

Get-Mailbox | Where-Object {!$_.IsValid}

You can use the filter on Get-Mailbox to get a subset of data like;

Get-Mailbox -Filter {Office-Like "HQ"} | Where-Object {!$_.IsValid}

Once you’ve got a list invalid mailboxes you can remediate them

 

 

Star-Trek : Bridge Crew, First Impressions

Do you want to experience being on the of the Enterprise? Do you have some form of VR device?

Then you’re in luck because you too can do James T Kirk impersonations in front of three strangers while saying things like “Full Power to Engines, Aye!” without a trace of irony.

This is the kind of thing that’s the killer app for VR.Bridge Crew 1
Continue reading “Star-Trek : Bridge Crew, First Impressions”

Obutto Revolution Desk / Cockpit Review + Construction Tips

I’ve recently moved house and have a bit less space for my work / play desk (a huge, deep table-top).  Additionally, I’ve been doing a lot more typing on it (loads of PowerShell in my current job!) and I’ve been finding it more uncomfortable sitting at it typing for long periods.

Last, I’ve recently gotten a large, wide-screen monitor and it’s footprint was eating up a large amount of the desk-space I had.

So, after a bit of reading and hunting around, I got myself an Obutto Revolution. Continue reading “Obutto Revolution Desk / Cockpit Review + Construction Tips”

Moving Home: For Geeks

The Ultimate High-Tech Solution for Moving Home

We recently moved house and while there are lots of helpful checklists out there (like this on on the BBC) there were a few extra wrinkles for me due to my generally nerdy existence.  So, here’s a few helpful hints I discovered during the process. Continue reading “Moving Home: For Geeks”

PowerShell: Display A Menu And Get a Valid Choice

While it’s normally best practice to not display anything on the host and to batch as much as possible with PowerShell; sometimes you need a UI.  Here’s a pair of functions to display a menu on the screen, automatically number the possible responses and only return when a valid choice is made. Continue reading “PowerShell: Display A Menu And Get a Valid Choice”