Category: Uncategorised

Efficient Lookups in PowerShell

21st November, 2019

When writing scripts in PowerShell we often need to do a lookup in another dataset. Of course one way is to use an external tool like Excel with VLOOKUP or SQL Server with its joins and produce a data set that can be used in PowerShell without any lookups, but sometimes this just isn’t practical. […]

Add open with Notepad as Administrator

9th March, 2018

So often do I work on my laptop or on servers and I have to open a file in Notepad to edit it, however the file is protected so you have to not only be an administrator but you need to use ‘Run as Administrator’ Now that’s all well and good if the menu item […]

Sysmon Configuration with DSC

23rd October, 2017

As part of a project I’m working on I was asked to install and configure Sysmon on all servers using DSC (Azure Automation DSC in this case)   After a bit of effort I came up with the following Configuration xSysmon { param ( [string] $SourcePath = “”, [string] $LocalPath = “”, [string] $ConfigFileName = […]

Bandwidth Latency’s Relationship to Throughput

12th June, 2015

This post aims to explain bandwidth and latency individually and then look at how they relate to throughput.  It came about when discussing how some transfers like mailbox moves got nowhere near to using the overall capacity on a network link, and also why SMTP transfers for large emails were taking much longer than expected. […]