Networking is the act of connecting one or more computers together using wired or wireless technology.

How to Turn Off Reading View for Word 2013 Attachments

Office 2013 has this nasty habit of opening Word, Excel, and other Office email attachments in “Reading View,” which is a stripped-down read-only mode that exists in Office 2013.  Turning it off is simple enough: simply click File > Options and uncheck the setting labeled “Open email attachments and other uneditable files in reading view.”  It’s that simple.

But what if you’ve got a network full of users that need to have this feature disabled?  Well, there’s a registry setting for that.  Using login scripts, group policy, or some other method, set the following registry key to 0:

HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Options\AllowAutoReadingMode

Use a Group’s SID Rather than Group Name For ThinApp Deployments

When I deploy applications with VMWare’s ThinApp, I like to limit the users that can use the application by specifying a single group via the PermittedGroups option in the package.ini file. Then i can control deployment by adding and removing users from the group in Active Directory.

When I’ve discovered is that your applications become useless if you rename the group after you build the application package. I didn’t find this out until I started standardizing our group naming conventions and began adding a prefix to all groups that control application deployment.

Fortunately PermittedGroups also supports the use of group SIDs, which never change regardless of the name of the group. I’ll get the group’s SID using PowerShell, then paste it into the PermittedGroups line in package.ini, then rebuild.  After that I can do anything I want to the group (other than delete it) and it’s ability to assign the ThinApp will be affected.


# Return the SID of an Active Directory group
[string](Get-ADGroup “Paste Group Name here”).SID

Listing Nested Members of a Group on the Command Line

Here is a simple little snippet of command-line magic you can use to display members, including nested members, of a group in Active Directory:

No Internet After Reformatting Windows? No Problem

A number of YouTube users replied to my video Find Your Network Settings in Windows XP asking for advice on what to do when you have no Internet after reformatting Windows.  This is almost always as simple as installing the correct Ethernet or wireless driver for your computer.  Your computer should have come with a disk with all of the drivers for your hardware. If you put in an ethernet or wi-fi driver after-the-fact, that should have come with a disk too.

Install the drivers from the disk, and your Internet connection should be available.  if you are using wireless, you may have to configure your network name (SSID) and password.

Subnet Calculator in 9 Lines of PHP

I’ve been spending a lot of time studying for my Microsoft 70-642 exam, an important part of which is subnetting.As an intellectual exercise I wrote a subnet calculator. Enjoy:

1
2
3
4
5
6
7
8
9
 function subnet($hosts)
 {
	$bits       = decbin($hosts) + 2; // Add 2 for Network ID and Broadcast
	$hostBits   = strlen($bits); // find how many bits it takes to represent it
	$cidr       = 32 - $hostBits; // Find slash-notation
	$binaryMask = str_repeat('1', $cidr) . str_repeat('0', $hostBits); // Subnet in binary
	$subnet     = implode('.', array_map('bindec', str_split($binaryMask, 8))); // Subnet in dotted-decimal
	return array('hosts' => $hosts, 'hostBits' => $hostBits, 'cidr' => '/' . $cidr, 'binaryMask' => $binaryMask, 'subnet' => $subnet);
 }