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”

Base64 Encoding with Powershell and .NET Framework

Base64 Encoding with Powershell and .NET Framework

Today I’ve answered a question in one of my blog articles on SendGrid API and PowerShell on how to add attachments to an email when using the API.
The official documentation is pretty clear if you want to pass a text or binary file as an attachment the SendGrid API is requiring a couple of strings: filename and content in base64,  but in case anybody finds a roadblock here this article it may help you. Continue reading “Base64 Encoding with Powershell and .NET Framework”

Working Remotely – Different solutions for Small Businesses with Powershell and SSH Tunnels

The first quarter of 2020 changed our personal and professional life in a lot of ways. I’ve read a lot of articles around the trends of adoption of cloud services and all software that should facilitate the challenge of enabling in every country the same practices and processes of working remotely.

During the last couple of months, I’ve received from small-medium businesses owners and IT professionals the same question how to transition smoothly and quickly.  Working in the operations field for mid-large organisations it required me to step back from the most obvious and structured approaches and be more flexible and down-to-earth.

Continue reading “Working Remotely – Different solutions for Small Businesses with Powershell and SSH Tunnels”

Powershell 7 is out. Haven’t you installed it yet?

powershell-7-is-out-haven-t-you-installed-it-yet-

Earlier this month Powershell 7 went GA and it is a new major release 2 years after the previous one. I always think that whenever a new major version is out it is definitely time to install it.
What I generally do and suggest everybody do the same is to look at the new features, at the deprecated ones if any and most importantly to see what’s the impact or implications for the code that I will consider to run on PowerShell core in this case. Continue reading “Powershell 7 is out. Haven’t you installed it yet?”