Repair corrupted PSTs via PowerShell or the cmd prompt in Windows

The Inbox Repair Tool (scanpst.exe) included in Outlook 2016, specifically Outlook 2016 for O365 version 1807 (build 16.0.10325.20082) and above now includes code that will allow you to run scanpst.exe from a command-line interface.

This functionality is great especially if you find yourself in a position where you need to scan and repair a large number of PSTs.

The following examples were tested on a PC running Windows 10 Enterprise (x64-bit) version 1803 (OS Build 17134.1039) with Outlook for Office 365 MSO (16.0.12026.20100) (32-bit) Version 1909 Click-to-Run.

Continue reading

Throttle a Robocopy

You can throttle a Robocopy to avoid consuming all available network bandwidth by using the /ipg:n switch. This can be helpful if you need to perform a large data copy over a WAN.

To determine the inter-packet gap value to use for n, use the following formula:

D = (Ba-Bd) / (Ba*Bd) * 512 * 1000

Where Ba is available bandwidth in Kibibytes and Bd is the desired bandwidth in Kibibytes.

Also here is a handy calculator to help you test your values.

Continue reading

Encrypt a disk in Ubuntu Linux using Cryptsetup

LUKS Linux Unified Key Setup

Cryptsetup is a utility used to setup disk encryption and is based on the DMCrypt kernel module. It implements LUKS which is the standard for Linux hard disk encryption.

LUKS provides a standard on-disk-format and facilitates compatibility among distributions while also providing secure management of multiple user passwords. In contrast to existing solutions, LUKS stores all setup necessary setup information in the partition header, enabling the user to easily transport the data.

Today we will examine how to setup encryption on a 32GB SanDisk USB thumb-drive using Ubuntu Linux.

Continue reading