Weather information in Powershell console – Updated

With inspiration from and I’ve written a function for Powershell where you can get current weather conditions whenever you launch the console!

Make sure to add this function to your Powershell profile and call it via Get-Weather to have it automatically run.

You can find the script on my GitHub:

Backup and replace PFX certificates in PowerShell

I recently wrote a PowerShell script that will back and replace a certificate as well assign permissions to the private keys.

Basically, what this script does is:
– First checks if the certificate you want to import exists or not
– Perform a back-up of the certificate
– Import the private certificate
– Assign the Everyone group read access on the private key
– Import the public certificate
Continue reading “Backup and replace PFX certificates in PowerShell”

Delete files older than X days

Here’s a quick portion of a PowerShell script I used that will delete files older than X dates from the current date.

Simply change $days to the number of days. In this example, all files older than 7 day will be deleted.

Note that this will only delete the files in the given $path. If you wanted to delete all the sub files/folders in $path, add the -Recurse switch:

ATI audio distortion on Kodi

I use Kodi as my HTPC software of choice. In the bedroom I am using a Raspberry Pi 2 running OpenElec which I have had absolutely zero issues with.

As for the living room setup, I can’t say the same.

For this setup, I am using a fairly descent desktop PC as my HTPC which is tucked away behind the bookshelf so it’s out of sight. The PC connects to the TV via a HDMI connection provided by an ATI 5450 card because…well it was cheap and did not have a fan for noise purposes.

The problem that I notice is that approx every hour or so, the audio gets all distorted and tinny and echoes. This happens regardless or what I am using the PC for – some light gaming, but mostly when using Kodi. It’s super annoying when my wife and I are watching a movie and the audio issue pops up.

Continue reading “ATI audio distortion on Kodi”