The other day I was playing around in WSL with a colleague of mine and we did this:[Read More]
Local User Management Polyfill
Older Versions of Windows 10 and all Windows Server 2012 systems have no local user management commandlets.
This is a working polyfill to allow scripts using local user management to run on old systems.
Linked: Powershell PSDefaultParameterValues
A deep dive into PowerShell parameter defaults
The Null-Coalescing Operator
A closer look at the null-coalescing operator and how it can help us in writing smarter, more concise scripts.
Today we take a closer look at the null-coalescing operator and how it can help us in writing smarter, more concise scripts.[Read More]
Delete Your Old VMware Snapshots
For the love of Pete, please delete your old snapshots regularly! Old snapshots have caused incidents and even outages more than once in my career and it is really easy to preemptively look for them and get them removed before anything happens. Why To put it plainly, they can cause issues - like 03:00 in the morning pager alert issues and additionally eat up storage space like crazy. Degraded performance of the VM having the snapshot Degraded performance to full outages for other VMs on the same data store due to rapidly increasing snapshot sizes VMware recommends a series of steps to reduce risk when using snapshots: [Read More]
How To Find With PowerShell
Finding files, do I even need to describe how important this is?
Finding files, do I even need to describe how important this is?[Read More]
Super-Charged Cmdlet Aliases
It works like magic, but it works - Bring your aliasing to a whole other level!
Backstory I recently wrote a post about PowerShell Aliasing for the folks over at ScriptRunner. The one issue I had while researching for this post was this: You can not create a alias for a function and overwrite one of it’s parameters at the same time while keeping nice features like tab-complete. For a concrete example of this visit please look at the original post. At the end of the post I asked if anyone had a solution to this problem - and the internet delivered! [Read More]
Linked: Powershell Aliasing
A deep dive into aliasing with PowerShell
Why You Want To Install PowerShell On Windows
Why installing PowerShell on Windows may actually be a good idea
Q: Wait a minute! Don’t I already have PowerShell?
A: Yes. However you may want to continue reading because things are never as simple as they appear.[Read More]
Collections and Randomization
Randomize Collections in PowerShell
Randomizing a collection is useful in a variety of situations and in most languages it is fairly straight forward.[Read More]