Off for the next leg of the trip, from San Francisco to Yosemite First, we needed wheels…. Continue reading “An Englishman in California, Day 5: San Francisco to Yosemite”
An Englishman in California, Day 4: San Francisco
Our last day of exploring San Francisco. Continue reading “An Englishman in California, Day 4: San Francisco”
An Englishman in California, Day 3: San Francisco
More exploration of San Francisco! Continue reading “An Englishman in California, Day 3: San Francisco”
An Englishman in California, Day 2: San Francisco
The first full day in California! Continue reading “An Englishman in California, Day 2: San Francisco”
An Englishman in California, Day 1
We’d been planning a road-trip through California for a long time and finally we got a chance a do it. Here’s what we did, day-by-day. Continue reading “An Englishman in California, Day 1”
PowerShell: Test a File Is Locked
A nice, short function this one;
<# .SYNOPSIS Tests if a file is locked. #>
function Test-FileLocked
{
param
(
[string]$FilePath
)
try { [IO.File]::OpenWrite($FilePath).close();return $false }
catch {return $true}
}
PowerShell: Create a CSV Report of Mailbox Sizes
The following is a simple script to generate a mailbox size report CSV for a set of email addresses. The full function and explanation follows.
Continue reading “PowerShell: Create a CSV Report of Mailbox Sizes”
PowerShell: Synchronizing a Folder (and Sub-Folders) Part 6
Hi. Here’s another update on the Sync-Folder script here. In this part I add some more code to use literal paths (so that special characters don’t cause the sync to fail) and a report of the numbers of copies, updates, folder removals etc performed.
Update : I’ve revisited this script a few times with new additions and modifications.The latest full version of the script is here. That post also includes links covering the other revisions to the script. Continue reading “PowerShell: Synchronizing a Folder (and Sub-Folders) Part 6”
PowerShell: Is an Object a Mailbox or Remote-Mailbox?
Before you start processing a bunch of Exchange objects sometimes you might want to check if they’re Mailboxes or RemoteMailboxes. The script (and explanation) is after the break. Continue reading “PowerShell: Is an Object a Mailbox or Remote-Mailbox?”
PowerShell: Check if an Email Address is Valid
There’s a pretty simple way to test if something is a valid email address but it’s nice to wrap that around with a bit of code to test for a stream or array of values.
The function and explanation follows.Here’s the full function with an explanation (and alternative way to make it work) afterwards.
Continue reading “PowerShell: Check if an Email Address is Valid”