Category: Tech

We are a Microsoft partner and have been standing up a lot of clients on Office 365, the management of which requires a lot of PowerShell use to administer properly. My last boss told me that Microsoft’s move away from the GUI toward PS scripting is what is going to ‘separate the men from the boys’, and I’ve taken this to heart, trying to script out everything as much as possible. Server 2012 has really made improvements over 2008 as far as this goes, and Exchange Online and Office 365 (AKA Microsoft Online Services) are strongly there as well. Sure, there are web interfaces for them, but Microsoft seems to have a habit of changing the navigation and language every few weeks and the GUI has been inconsistent between the business and enterprise plans as well, so the Powershell commands seem be the way to go.

For this most recent job, we had a client who wanted to change domain names, so we stood up the new domain on O365 and configured client workstations for the new accounts. Once that was done we verified the old domain with Microsoft in anticipation of routing the old domain to the new mailboxes. Rather than manually add each additional SMTP address for each user account, I used the following script. Make sure you connect to Exchange Online using remote PowerShell first.

$users = get-user * #Filter your OU appropriately, this was a blanket change for a flat hierarchy.
foreach ($user in $users)
$mailbox = get-mailbox $user.identity
$newmailbox = $ + ""
set-mailbox -identity $user.identity -EmailAddresses @{Add=$newmailbox}

You can then verify that the changes went correctly with the following:

foreach ($user in $users) {
$mailbox = get-mailbox $user.identity
write-host  $addresses

Ray Kurzweil, who’s about the closest thing to a hero we’ve got these days, gets mentioned quite a lot in this New York Times writeup on The Singularity University, which was started by Google Founder Larry Page to introduce entrepreneurs to emerging technology in the areas of nanotechnology, artificial intelligence, energy, biotech, robotics and computing. The cost for the 10 week course that aims to prepare you for the future? $25,000. Looks like I won’t be going anytime soon.

Vice Magazine has an interview with Ray Kurzweil, inventor, futurist, and prophet of the Singularity. For those of you who don’t know, Ray believes that we are nearing the a new age when robotics, genetics, and nanotechnology and superhuman machine intelligence will usher in a new age where the line between biological and machine, real and virtual will be no more. A lot of people think Kurzweil is a kook, but I eat this shit up. A lot of people derisively call this the Rapture of the Nerds because of all the talk of brain uploading, nanoswarms and other far out sci-fi sounding concepts, but Ray is a man of great reputation and  has built his books around a lot of sound science, and I remain convinced that it’s not a question of if but of when.

The truth is computer continue to increase at an accelerated pace, and it doesn’t look like Moore’s law is slowing down yet. Projects to simulate a full scale human mind are in the works and should be successful in the next 20 years or so. Once we manage to simulate the mind on a scale faster than real time, things are going to change quickly. It will be the last invention we need make, as computers begin redesigning themselves and living the equivalent of a few days in mere hours. There’s no telling where things will go from there.

It may sound scary to some of you, but to me it sounds very exciting.