Updating Windows Subsystem for Linux (WSL2)

I must admit that I’m a very strong fan of Windows Subsystem for Linux (WSL) 2.  It’s definitely something I’m happy to use every single day, regardless that I have few Linux VMs and a couple of apps running in docker containers on my workstation.

I cannot say that the new version has substantially reduced the number of tools yet, but there is the chance that in the future WSL2 and (Linux) docker containers will be the only things running all the time on my system. The Hypervisor will be just used for running some VMs on demand when needed.

Continue reading “Updating Windows Subsystem for Linux (WSL2)”

Using PowerShell to Clean Up Sophos Temp Files

using-powershell-to-clean-up-sophos-temp-files

Recently I’ve encountered a strange issue that affected one Windows workstation with Sophos AV (Endpoint) software installed.  Sometimes this software creates some temporary files with ‘$$$’ extension and apparently it never removes them.

I thought that the process of analysis and implementing a solution for this edge case was perfect for an article and it is applicable to many similar situations when scripting is required to collect information or mitigate.

Continue reading “Using PowerShell to Clean Up Sophos Temp Files”

How to send an email with PowerShell using SendGrid API

how-to-send-an-email-with-powershell-using-sendgrid-api

I really like event-driven notifications that can trigger different webhooks and it’s really fun putting them together like pieces of lego to automate workflows.

The most common and simple notification method is via email, but there are scenarios where environments for security reasons and by design have just access to the internet on port 80/443  and this connection is often mediated via a web proxy.

Not having access to SMTP protocol can be a roadblock but, in this article, we will implement a solution to send an email with PowerShell under these limitations without changing Firewall Rules or NSG.

Continue reading “How to send an email with PowerShell using SendGrid API”