Calculating checksums are perhaps not the first thing you would think of needing to do in PowerShell. But if you ever are in a situation that you need to calculate a checksum using the CRC32 algorithm, I got you covered with this small function. (more…)
Quick tip: Access local environment variables
Just a quick tip on how to get and set environment variables using PowerShell, compared to how it is done in DOS. (more…)
ConsoleExtensions update – now with more colors!
In the latest preview build of Windows 10 (14931) the console have been updated to (finally) support more colors! I have updated my Console Extensions module. Read on to learn about the new features. (more…)
If you need to verify a web address, it’s natural to look into Invoke-WebRequest, capturing the results and check the StatusCode if the request was successful. There is just one problem… (more…)
I decided to collect some of my functions intended to be used when working in the PowerShell console into one module.
I’d like to introduce my 4th PowerShell module published to the PowerShell Gallery; Communary.ConsoleExtensions.
Note that the module ‘PowerShellHumanizer‘ (also on the Gallery) are needed for this module! (more…)
If you ever find yourself in a situation where you don’t really know where you are, I got you covered! (more…)
Fuzzy Search with PowerShell
Doug Finke recently published a module for doing Fuzzy Searching with PowerShell. I forked his project and added code to get valued score for the results, and created a PR to his project. He suggested I publish my changes on my own, so I did. I already had a module planned for my approximate string matching algorithms, so I combined the two into one module – Communary.PASM. (more…)
Automatically convert MarkDown to HTML in Visual Studio Code, with syntax highlighting!
I was investigating the possibility of automatically converting markdown documents into HTML, and came across this article from the Visual Studio Code documentation. It details how, using the Task Runner and a Node.js module called Marked, you could set up a task that do exactly what I was after. (more…)
Creating demo users in Active Directory
For a task at work I had to create a number of users in Active Directory for a demo environment I had to set up. I didn’t really want to do this manually, and I wanted something more realistic than ‘DemoUser 01’, ‘DemoUser 02’ and so on. (more…)
Inline Progress Bar in PowerShell
In a previous post, I have touched upon the fact that Write-Progress can be quite slow, especially when used in the console host (as opposed to in ISE). So I started to roll my own, with a crucial difference; this progress bar is used inline. (more…)