If you have ever customized your PowerShell prompt you have probably had a need (or wish) for a function to “intelligently” shortening the current path. I have written a bunch of functions for this and decided to expand on my earlier versions and release it to the PowerShell Gallery. (more…)
Tag: Custom Function
Update-AzureRmTag
I recently had a need of tagging a large number of resources in Azure, and found it difficult to do this easily. So naturally I ended up creating a helper function to do the job for me. (more…)
Calculate CRC32 in PowerShell
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…)
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…)
Test-WebRequest
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…)
Communary.ConsoleExtensions
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…)
Get-GeoLocation
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…)
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…)