Office 365 and PowerShell

I’ve been getting back into the weeds of Office 365 of late, building out training materials and preparing for certification. It’s been a bit on the geeky-fun side, but not all the time .. there are a lot of moving parts, and not a lot of time to debug (I do have a real job).

That said, Office 365 Wave 15 (released back in February) has added massive functionality to the web-based administration user interface, bits and pieces that make user, group, security and application administration a (relative) breeze. Of course, there are times when a UI isn’t practical:

  • Lots of Users
  • Lots of Groups
  • Lots of Security settings

.. who needs to lather, rinse, repeat (and repeat, and repeat) when dealing in volumes? Well, no one. Of course, there are several customized administrative tasks you perform that you’ll perform multiple times .. suggesting an automated methodology that befits your organization. For that, there’s PowerShell. Windows PowerShell provides:

  • “Cmdlets” for performing common tasks, including access to system-level resources, the Registry, the file system the Windows Management Instrumentation (WMI) interfaces (and more!).
  • Task-based scripting language support for command-line tools.
  • Common syntax and naming conventions, allowing easy flow control between cmdlets: the output from one cmdlet can be used as the input to another cmdlet.
  • An extensible interface allowing for custom tools and utilities.

While someone could devote an entire series of articles on PowerShell (or a career!), I’m focusing more on getting PowerShell to streamline Office 365 administrative tasks. The good news: there are lots of cmdlets to perform common on- and off-premises Office 365 tasks from your IT Administrator workstation, but a bit of setup is required. For starts:

  • Download and install the Office 365 Sign-in Assistant.  Select the 32- or 64-bit version for your workstation.
  • Then, you need the Office 365 cmdlets. Select the 32-bit or 64-bit version for your workstation.
  • Managing Windows Azure Active Directory for your Office 365 installation? PowerShell can help there with the Windows Azure AD PowerShell Module. The best part? The commands therein are included with the Office 365 cmdlets, above.
  • From there, it’s time to do some learning .. here’s where I started:

Some cool recent releases to extend, and make you more productive:

Okay .. all these thoughts captured, it’s back to work for me. Enjoy your foray into PowerShell .. please drop me a note if you see / learn something interesting, or if I may assist.

Backup / Restore Windows System Disks in Windows Azure

As we all continue to embrace the Cloud (Windows Azure, in particular) as our machine-of-choice for commodity IT operations, the requirement to capture current-state VMs becomes a day-to-day reality for IT professionals. Let’s discuss some options to consider:

    Whether a developer or an IT Guy, the Cloud is a component of your toolbox you should consider. It’s a great journey!
    I’ll see you there.

Windows Phone 8 – Nokia Lumia 920

Okay, so not feeling that cutting edge with my Windows Phone 8 – Nokia Lumia 920 atm. I swapped out my beloved Motorola Atrix 2 (which I described fully in “My Shiny New Toy” in July 2012) for this device, and found a lot of things to be rockin’ with the WP8 device .. however, I’m writing this JUST as Microsoft and Nokia are releasing the Windows Phone 8 – Nokia Lumia 1020 (41-mp camera .. wowza!).

So .. feeling a tiny bit behind the times. That said, let’s cover what I found to be cool in my WP8 / Nokia experience:

  • LOVE the text-to-voice interface .. texts are read to me and I can respond in voice.
  • LOVE the Metro Tiles. Wonderful to be able to place the applications I use the most within easy reach for one-handed operation.
  • LOVE the ability to use Lync (meeting and collaboration software) while holding meetings on the Microsoft Corporate Network .. that was reason alone for me to switch.
  • 32GB RAM .. wahoo!

Some bits I found to be not-so-hot:

  • Metro tiles: not happy they are not more customizable. I have multiple email accounts, and there is only one icon (that I found) .. which is which?
  • Text-to-voice: there doesn’t appear to be reliable ‘learning’ in the device. It doesn’t recognize / remember various bits of slang that I use.
  • Text-to-voice: the TTV interface simply ‘gives up’ if I’m in a noisy environment, even on an earbud.
  • The Bluetooth stack is oddly unreliable .. multiple earbuds will simply ‘forget’ they are connected, which forces me to the handset to complete a call. When the earbud fails, it must be power-cycled to reconnect. Further, it doesn’t accept the first attempt to PC the device (this makes me think the earbud internal system needs a reboot after connecting with WP8).
  • The lack of applications. I cannot use Schwab, Alaska Airlines, Chase, BECU and so on (YMMV).
  • The lack of functionality in WP8 applications: missing hardware components (barcode scanner, audio) in apps that are available.
  • The lack of Google Maps. In my experience, Bing Maps and Nokia “Here” are very poor substitutes.

IMHO: the WP8 platform still has a way to go. Maybe some of these things are resolved in the 1020 .. let’s dig about and see what we find.

Windows Server 2008 “Stage 3 of 3” Fixes

Lots of chatter on the web about this .. of course, who uses Windows Server 2008 when Windows Server 2008 R2 and Windows Server 2012 have been released?

Well, unfortunately, I do .. if only for a little while longer (famous last words, for a production server).

Anyhow, these symptoms appear from a routine update operation:

  • You order a system restart.
  • The system displays the “Configuring Windows Updates – do not unplug .. “.
  • The system goes into POST operations.

From here, all is well, until it displays the message: “Configuring Windows Updates – Stage 3 of 3 0% Complete”, from which it never recovers.

There are several unrelated causes for this, per other aggrieved users .. your mileage may vary. However, you simply cannot fix issues with the system when it’s in the “3 of 3” state, so here’s how to get back to the console to debug:

  • Try pressing Control-Alt-Delete. In about half the cases, you will get the login screen, but it can take a few minutes to appear. If you can, log on and check your system logs for evidence of the hang (LSASS.EXE deadlock is a likely culprit .. try fixing that first).
  • If you cannot get into the system gracefully, hold down the power button until the system switches off. Restart the machine in normal mode.
  • If the system hangs at the “3 of 3” state, hold down the power button again until the system switches off. Restart the system in safe mode with networking.
  • Once restarted in safe mode, the system will likely show the “3 of 3” state, but this time, should get to 100%.
  • Navigate to C:\WINDOWS\WINSXS and look for a file called “pending.xml”. If you find it, delete it and restart the system in normal mode.

From here, you’re troubleshooting .. I like the deadlock reference above for starts. This condition was fixed in the hotfix referenced by KB2379016: “A computer that is running Windows Vista or Windows Server 2008 stops responding and hangs at the "Applying User Settings" stage of the logon process”, I’d give that a try first.

Active Directory in Windows Azure ..

.. verry interesting.

It’s more than a Laugh-In reference, however. The Windows Azure Identity folks have built out an amazing way to federate identity across multiple platforms and locations, hybrid and cloud .. essentially arriving at confirming the proper person has arrived at the doorstep, requesting services. How would you like to:

    .. if these fit your use cases, please reach out. I’ll connect you to the proper folks.
    It’s a great journey to the Cloud!
    I’ll see you there.

Windows Azure SQL Database Premium Preview

As of today, Microsoft is offering access to a limited preview of the new Windows Azure SQL Database Premium service. As opposed to non-Premium, the new offering provides reserved instances for databases requiring higher performance capacity and predictable performance.

To sign up:

  • Visit the Preview Page and click the ‘Try it Now’ button.
  • When approved, visit the Windows Azure portal and request a Premium Database Quota assigned to your Cloud Services.

For the Preview, customers will be limited to one database per logical server, priced at 50% of the eventual GA pricing. Please see the Windows Azure SQL Database Premium page for more details and availability updates.

Windows Azure GA Update: Web Sites, SSL and Mobile Services

Wahoo .. Windows Azure Web Sites Standard Tier (Reserved are already in GA) are now released to General Availability, along with SSL support .. a big boon for folks seeking to deploy scalable, highly-available commerce-enabled web sites. If you’re ready to get started, sign up for a trial and check out:

Windows Azure Mobile Services are good to go in GA as well, sporting a high-availability SLA for services running in Standard and Premium tiers. Mobile Services makes it fast and easy to create a mobile backends for a number of devices, simplifying authentication and push paradigms .. why reinvent the wheel? Besides the services aspects, a number of native SDKs for devices and Windows Store are available today.Here are a few links to get you started:

For some of the latest bits, please navigate to the Build 2013 site held in June 2013 .. the session content is online and as fresh as it gets, speeding your way into the Cloud!

I’ll see you there.

Windows Azure Remote Desktop Services

Great news for the Virtual Desktop Interface (VDI) types out there: as of July 1, Microsoft now allows Remote Desktop Services (formerly called Terminal Services) licenses in Windows Azure Virtual Machines. Prior to this licensing update, you were only allowed to connect to the console of your VM for administrative purposes, and only up to two users at a time. With this new licensing modification, customers can now connect as many users as they have system capacity, and of course, licenses.

For complete details about licensing, please see:

The short version:

  • RDS Client Access Licenses (CALs) that are part of a a VL agreement are NOT eligible for license mobility rights, per the FAQ.
  • Windows Client desktops (Windows 7 or Windows 8) are also not allowed in Windows Azure, or any other Service Provider (Amazon, Rackspace, etc.) as multi-tenant hosting is not covered by PUR.
  • To increase users beyond the two administrative sessions you need to purchase RDS Subscriber Access Licenses (SALs) through the Microsoft Services Provider Licensing Agreement (SPLA) for each concurrent user accessing the VM. SPLA licenses are obtained through SPLA Resellers.

Common use cases include:

  • Partner-Hosted Microsoft Office: running a VM with Microsoft Office installed.
  • Thick-client application hosting (common RDP scenarios for complex, client-side applications).
  • Demo, test and legacy environments.

This is a major benefit to cost- and maintenance-conscious IT professionals, and yet another reason to get into the Cloud!

I’ll see you there.

Seattle to Portland – STP 2013* (the ride with the asterisk)

For my third year, I had the pleasure to ride with 9,999 of my fellow bicycle riding buddies in the 2013 Seattle to Portland Bicycle Classic. The ride was approximately 203 miles this year, and I completed in a single day.

WP_20130713_013Why the Asterisk? Well:

  • I made amazing time for the first half of the ride, arriving at the half-way point (Centralia, Washington) at 11:45am, 6 hours and 45 minutes after departing the UW parking lot starting point. As it’s about 100 miles, averaging 14.81 mph (with stops).
  • I had a tire blow out (not to be confused with a flat) 1,000 feet short of the Napavine mini-stop (the top of a nicely challenging hill .. see the route map for details). Not knowing any better, I attempted to repair the blown tube, and then trying a new tube. Note that a blowout looks a lot like the results of the scene in ‘Alien’, where the innards become ‘out-ards’. While I didn’t know this at the time, a hole that size will simply destroy the tube within. I know better now.
  • The first repair (including patching the original tube) took 30 minutes; the second, 15 (putting in a new tube). Upon inflating the tire and heading up the hill, the new tube gave way, and I was pushing the bike up the hill.

My hope was there would be a mechanic at the Napavine site .. unhappily, the nearest was 13 miles back and 14 miles forward. At that point, I made the call. The ride is fully-supported .. that is, there are supplies and mechanics at nearly every stop .. except for this one. I made the call to the support number, and the truck arrived to collect me. after that, a 14-mile ride in the truck and I was on my way .. losing over three hours in the process.

As you know, figures lie and liars figure .. but some math is in order. For the back half of the ride (my trip computer reset while my bicycle was upside down .. argh). Napavine is mile marker 112, Vader at 126, 77 miles from the end of the ride. I rode for just short of 6 hours (including stops), arriving just before 10pm. So, the breakdown:

  • 6.75 hours for the first 99 miles (5am to 11:45am .. including stops).
  • 1 hour at Centralia (insane long lines for one-day riders).
  • 1 hour until the blow out .. 3 hours lost / 14 miles in the truck.
  • 6 hours for the last 77 miles (4pm to 10pm).

So, I got to enjoy the ride so much more than my fellow one-day riders .. 17 hours, all told .. but just under 13 hours pedaling / taking breaks, a respectable (for me 15.6 mph overall. Would have beaten a personal record, if not for the snafus.

All that .. an amazing day. Please check out the ride on my Endomondo feed.

Windows Azure at WPC

Finally taking a break, triple-tall-vanilla-soy-latte in hand and electrons flowing into my laptop. Windows Azure news from the Microsoft Worldwide Partner Conference 2013 in Houston:

  • The Windows Azure SQL Database will boast a premium offering shortly. As a shared database-as-a-service platform component, tenants can suffer from ‘noisy neighbors’, where other customers’ activities can impact your database performance. The premium offering will help manage this by assuring higher bandwidth and dedicated CPU capacity.
  • Windows Azure Active Directory integration will improve over time as well. Microsoft is working with several third-party SaaS vendors to integrate identify services with AD.
  • Limited previews of these updates will be made available in the coming weeks.

%d bloggers like this: