Office 2016: You’re connected to too many services

You’re connected to too many services. Please remove some connections before adding additional services.

Recently I started seeing the above annoying error message every time I opened up Outlook 2016 on my MacBook, but only after being prompted for my passwords for every single email account I had. This is tedious with two connected accounts. I have five.

A quick search led me to a thread on Microsoft Answers, with a solution by Beigs, who posted this image with their answer:

  1. Open Word or Excel 2016 on the Mac;
  2. Click on your name on the top left (a.k.a. the Welcome Screen);
  3. Log off any duplicate accounts, or accounts that have an Alert next to them;
  4. Close all Office 2016 applications, and re-open Outlook.

This worked for me, and from a technical point of view, it makes sense. Thanks, Beigs.

Begging the Question

After listening to, and reading, a podcast and associated transcript turned blog entry by Stephen Fry, I realised that it is necessary for language to change, to adapt, even though I used to be a vociferous defender of prescriptive grammar.

I use a lot of Emoji in my instant messaging apps these days, and I see the Internet pushing and changing the use of language very quickly. In the last 22 years that I have been online, I have also changed the way I speak in real life.

Which raises the question: where and when is it necessary to draw the line between formal and informal speech?

I maintain that blog posts are formal speech, just like newspaper articles and business letters. A blog post is a way to convey an idea, and the fact that it is electronic as opposed to physical shouldn’t matter.

Language must change and adapt, but not at the cost of clarity. I attended philosophy classes during my brief stint at Rhodes University in 1996, and those six months impressed upon me the need for clarity of thought and expression. If we cannot even assign the same meanings to words and phrases, we cannot communicate clearly.

“Begging the question” is an explicit example of the need for this level of clarity. Notice how I “raised” the question instead?

To beg a question is to create circular reasoning, to say “this is awesome because reasons, but the reasons are awesome because of this”.

The entire point of the term is that the question remains unasked. The trouble is that many people are literally begging the question in their public speaking, including politicians. Logical fallacies are talking points, are sound bites, are what we hear on the news, and I feel like we’re regressing.

A longer example of begging the question, using Batman, because the LEGO Batman Movie just came out and I loved it:

“Here is one reason we cannot use: Batman is great and so his gadgetry must be pro. Of course, this would beg the question, since we are trying to figure out why Batman is so great. If you think about this argument, it would go like this: Batman is great because he has awesome gadgetry, and his awesome gadgetry is great because he’s Batman, and Batman is great. This argument travels in a circle. To avoid begging the question, we need to straighten that circle out. To do this, we need to justify the greatness of Batman independently of how we already feel about Batman.”
(Galen Foresman, “Why Batman Is Better Than Superman.” Batman and Philosophy: The Dark Knight of the Soul, ed. by Mark D. White and Robert Arp. Wiley, 2008)

Does this make your head spin? Good. Philosophy is intended to do exactly that. Logical fallacies appear everywhere, and even I am guilty of them, perhaps even on this very website.

Listen to your favourite politician or celebrity. Actually listen to them. Hear the words, phrases, and sentences (if they actually speak in complete sentences), and see if there’s a logical consistency to them.

Question everything they say. If you can, challenge their assumptions. Critically assess the statements they assume are concrete and unquestionable. Don’t let someone tell you how to think until you’ve processed it yourself.

If you want to raise a question, raise a question, don’t beg it.

However, as Stephen Fry once said, “so fucking what?” Eventually the meaning will change to present usage, and I’ll have to adapt.

Air gaps and secure networks

I am a person with many interests. In one conversation, I’ll introduce myself as a new filmmaker. In another, I’m a seasoned theatre actor. Sometimes I give talks on Microsoft’s data platform products, SQL Server and Azure SQL Database. There’s another strong field of interest I have, which I don’t speak much about, and that’s information security (often shortened to infosec).

By no means am I a security expert. I use 1Password for managing my passwords and secure data between members of my company, and I use Cloak VPN when I connect to public Wi-Fi networks. My MacBook Pro’s hard drive is encrypted using FileVault. We have a guest Wi-Fi network at home to prevent non-residents gaining access to our smart lights and my NAS. I have passwords on my two computers’ screensavers.

I know I don’t do enough to keep everything as secure as possible, but I try.

Recently I’ve been watching the Pluralsight course Ethical Hacking (CEH Prep) (login required).

The very first thing in the course is setting up a secure lab environment, so that any tools used in the course are contained in that secure environment. This is the right way to do it, and I am using Hyper-V on my venerable Asus laptop to host these socially unacceptable virtual machines, away from my home network and away from the Internet.

This is called an “air gap”. Theoretically speaking, the virtual machines (guests) have no network access, and therefore there is air between them and a machine that is online. Practically speaking, this is untrue, because my laptop, which is hosting the guests, is online, but Hyper-V has segmented them on their own private network.

So this raises a question: How do I install applications on these guests if I’m not giving them access to any network? I don’t want to connect the guests to the Internet to download anything, firstly because of automatic updates (the lab environment must be predictable), and secondly because the guests may be compromised already, and it would be improper for me to expose compromised machines to the Internet (and my home network).

The answer, as with any air gap, is to do it the way we used to twenty years ago: burn files to CD-ROM or a USB drive, and then access that device from the guest.

Using Hyper-V (and other modern virtualization technology), it is trivial to connect a CD-ROM, USB drive, or disk image to a virtual machine. My challenge, in this “clean-room” laboratory that I’ve set up, is that I have no software on my host operating system. All I want to do is download the files to the host and then make them available to the guest virtual machines.

In the Pluralsight course, the way the presenter did this was to make a network share available from the host to the virtual machines. I decided against this, because it does not keep the lab environment completely separate.

The only other machine I can use is my MacBook Pro, which means having to copy files over the network to my host, which I want to avoid.

I decided to create a virtual hard drive (VHD), which is natively supported on all modern versions of Windows, as well as Hyper-V.

On the host, I created a VHD using the DISKPART command, which is built into Windows.

From the commandline, type diskpart to open it. At the DISKPART> prompt, type:

DISKPART> create vdisk file="D:\Temp\airgap.vhd" maximum=1024

This creates a 1GB virtual hard drive on my host, which I will use to store files that I want to install on the guest. However, before I can use this container file, I have to partition and format it.

Attach the new virtual disk we have just created:

DISKPART> attach vdisk

Create a primary partition on the virtual disk:

DISKPART> create partition primary

Select the partition:

DISKPART> select partition 1

Assign it a drive letter (I used Z: but you can use any available drive letter):

DISKPART> assign letter=z

At this point, Windows will pop up a dialogue box informing us that an unformatted drive has been detected. We can use this box to format the drive, using the default values.

Once the drive is formatted, we can transfer downloaded files to this new VHD.

The next step is using the VHD on the guest. To do that, once the files have been copied, we can detach the disk from the host using DISKPART again.

DISKPART> detach vdisk

This closes all open handles to the VHD, so that we can access it elsewhere.

In Hyper-V, or whichever virtualization host you’re using, the first thing to note is that VHDs cannot be added to virtual machines while they are running, so I have to make sure the guest is shut down.

We then add the VHD as a second hard drive to the guest’s configuration and start up the virtual machine. The VHD is already formatted, and it will receive a drive letter automatically when the operating system has started, so it will be accessible immediately. We can just run the applications or installation from that new drive as if we had downloaded the files directly to the guest.

To make changes to the VHD, we have to shut down the guest and then use DISKPART to attach to the VHD again. It is good practice to take all necessary precautions when attaching the VHD to your host again, because although the guest is turned off, there’s no guarantee that the VHD hasn’t been infected with something.

If you need to add new files, it would be better to create a new VHD instead. Treat the VHD with the same level of trust as a USB drive you find in a parking lot.

If you’d like to read additional technical posts, check out my blog on Born SQL.