Users and admins can be lazy disconnecting sessions and sometimes you need to quickly log all disconnected sessions off a Remote Desktop Session Host. This short PowerShell script does just that.
Blog
Daily Entra Login Digest Email

Trying to tackle credential stuffing and suspicious logins sometimes needs a simple approach – human eyes. This script, provides a daily email for technicnal support staff to review to help spot unusual activity which can help inform changes to your Conditional Access Policies. Example Prior to scheduling this script in…
Azure Service Bus – Best‑Practice Guide (2025 release)

For architects and operators who have to keep the lights on while everybody else is “moving fast and breaking things.”
How long does the storage (free/used) take to update in the SharePoint Online admin centre?
Short answer The figures you see at the top-right of SharePoint Online ▸ Admin centre ▸ Active sites (and the matching bar in the Microsoft 365 admin centre > Reports > Storage) are not real-time.Microsoft runs a background job that recalculates tenant storage once a day, and the UI deliberately…
Disconnecting Microsoft 365 from Entra AD Connect
If you need to disconnect Entra AD Connect, there is a simple set of commands to do it. Connect to Microsoft Graph with the appropriate permissions scopes. Check the current status. Disconnect Entra AD Connect.
Empty all first and second stage SharePoint Online recycle bins
This script will get all the site collections in SharePoint Online and empty the recycle bins.
Bulk delete all files from OneDrive
There are times when you need to bulk delete all files from a number of users OneDrive, such as after a migration that has had some unexpected results and it is easier to start again. This script:
Best Practise – Hyper-V Cluster VM Automatic Stop Action
In a Hyper-V failover cluster environment, the best practice for the “Automatic Stop Action” setting is to set it to “Turn Off the virtual machine.” This recommendation may seem counterintuitive at first, but it is crucial for ensuring high availability and proper failover functionality within the cluster. Why “Turn Off”…
BPA (Best Practise Analyzer) Result: Short file name creation should be disabled

In addition to the normal file names, the server is creating short, eight-character file names with a three-character file extension (8.3 file names) for all files. Impact: Creating short file names in addition to the normal, long file names can significantly decrease file server performance. Resolution: Disable short file name…
