Dealing With The Unexpected Token in Json Error

If you’ve every created JSON files with PowerShell you may be familiar with the dreaded error when your JavaScript application attempts to parse the file. Sometimes this is caused by incorrectly formatted JSON, but if you used , this is unlikely to be the case. What I’ve found…

Auditing Logon Events in Windows

Every so often we’re asked to look into logon events to determine who logged into a device and when, be it a server or a PC. While there are commercial tools which can provide this information, they tend to be out of reach for smaller organisations leaving us with parsing the…

ACLs for IPsec Tunnels

When creating site to site IPsec VPNs we need to configure ACLs that define interesting traffic, that is, an ACL that matches to source and destination networks on each side of the link for which traffic should be encrypted and routed via the VPN. This is part of the Phase…

Determining When Guest OS Customisations Are Complete

When spinning up a few VM from a template in a vSphere environment, along with the usual guest OS customisations, it’s not always clear when the customisations are done, and, to a lesser extent, if they’ve been successful. On numerous occasions I’ve been less than patient, I…

Lets Encrypt With PowerShell

Let’s Encrypt is a service which provides free SSL certificates. The certificates are not provided through a website, and no CSR is required, instead, it is either integrated into your hosting platform/provider (ie, cPanel), or they can be manually obtained through the CLI. One…

Git And GitHub Reference And Quick Start Guide

When I started learning to code Subversion or ‘SVN’ was all the rage, and that’s what I went with. Time passed and the Git tsunami seems to have all but wiped out the competition. While I’ve stuck with SVN because it’s always worked and has never given me a reason to change, I…

Retrieving Paginated API Data With Axios

I recently encountered an API which would only permit a limited number of objects to be returned. The objects in this case were devices, with properties such as operating system, IP address, etc. If there were more than 250 devices, the first 250 would be returned, along with a…

Dynamically Updating a GUI Control with PowerShell

Using our previous basic form as a starting point, how would we go about updating the label to show some useful data which may update frequently? To keep the example short, we can have the label update with a random number every second and change the colour based on whether it is…