Check language in Media Files

I have a largish media collection (mainly ripped DVDs) but noticed that somehow, I had managed to rip foreign audio instead of English. A little script can help identify these easily with the help of the PowerShell module “Get-MediaInfo” (The script will install this for you providing the first run is from an elevated PowerShell …

Read more

Post an image from a URL to a Teams Chat/Channel

Now I work for a company where timesheets are mandatory, and it’s become a repetitive chore chasing everyone to remind them to make sure their timesheets are up to date every Friday! So being a fan of all things M365 and automation, I decided to automate this task with a simple Power Automate flow! We …

Read more

Powershell GEOIP Lookup using IPWhois.io

Sometimes, you want to look at a bunch of IPs and figure out where they are coming from. It could be firewall logs, maybe some web host logs. This script was originally developed for a very specific use case, it takes a bunch of IPs in a CSV (with a column header of ‘IP’) and …

Read more

Tail -f in windows

This is a simple PowerShell function that attempts to replicate the Unix command “tail -f” The only downside is that it outputs from the beginning of the file until it reaches the end, then updates the output as new lines are added to the text file. Or you could simply do this with:

Check Domain Controllers for Failed logins

Occasionally, you may have a user whose account is constantly getting locked out. In order to do this, it is necessary to “follow the breadcrumbs” starting with looking on the DCs to see where the authentication request came from. This can be a pain if you have several DCs, so I wrote a little script …

Read more

Office 365 – Report on Shared Mailboxes

A quick one-liner, which pulls back a list of shared mailboxes, last logon time, size in MB and item count. Connect to your EXO with connect-exchangeonline then run the below (This can take a while of you have a large amount of shared mailboxes) Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | get-mailboxstatistics | select displayname,lastlogon*,@{name=”TotalItemSize (MB)”; expression={[math]::Round(($_.TotalItemSize.ToString().Split(“(“)[1].Split(” …

Read more

O365 Shared Mailbox sent items

By default, when “sending as” a shared mailbox, the sent items go into the users sent items folder. Unfortunately, it is not possible to change this to be the shared mailbox, but it is possible to put a copy in the shared mailbox’s sent items folder. The below script will enable this for all shared …

Read more

PXE booting the Raspberry Pi 4

Today I got around to setting up a kickstart server to allow my Raspberry Pi’s to PXE boot. This has the advantage of reducing reliance (and wear and tear!) on SD cards. (Note, this only works for wired connections, not wifi) This is fairly straightforwards but does require modification of the bootloader on your PI. …

Read more

Tidy up Always on VPN Connections

We recently moved from a test to live implementation of Always on VPN, and moved our servers behind a load balancer, ratifying out profiles down to a single user and device tunnel. We found that deleting the old connections from Settings still left a bunch of stuff in the registry, so I came up with …

Read more