Retrieving a Windows 10 Key before reinstallation

Technet Gallery Tool Migration

As I mentioned in my previous post, I’ve been trudging towards migrating the 60 or so tools, modules, and scripts I published on the now-retired TechNet Gallery over to the PowerShell Gallery.

I want to make sure I migrate the things that people find most useful–so far, I’m about halfway and wanted to do a quick check-in:

PowerShell Gallery | Packages matching atguilmette

Let me know what tools you’re looking for and I’ll prioritize getting those up!… [ Continue reading ]

Determining your Office 365 Tenant Location

Flashback to what it took to do math in DOS batch files

While working on a script for an upcoming project, I wanted to test for the presence of various Office versions, including 32-bit and 64-bit components before initiating setup. Here’s one way I found:

SET CURRLOCATION32="C:\Program Files (x86)\Microsoft Office\root\Office16"
SET CURRLOCATION64="C:\Program Files\Microsoft Office\root\Office16"
SET PREV1LOCATION32="C:\Program Files (x86)\Microsoft Office\root\Office15"
SET PREV1LOCATION64="C:\Program Files\Microsoft Office\root\Office15"
SET PREV2LOCATION32="C:\Program Files (x86)\Microsoft Office\root\Office14"
SET PREV2LOCATION64="C:\Program Files\Microsoft Office\root\Office14"

REM Check for 64-bit versions
[ Continue reading ]