PowerShell

Posts tagged with #powershell
Total: 17

Find files and folders with spaces

Notes | 2024-06-27 (updated 2025-10-25) | 1 min read
#bash #find #powershell

On Linux/Unix/MacOS:

find . | grep " "

On Windows:

Get-ChildItem -Path "." -Recurse -Filter "* *" | Format-Table FullName

The WSL Onion

Calling Powershell.exe From PowerShell Inside WSL

Posts | 2022-04-06 (updated 2025-10-22) | 2 min read
#debian #powershell #windows #wsl

The other day I was playing around in WSL with a colleague of mine and we did this:

Read more…

Local User Management Polyfill

Notes | 2022-01-13 (updated 2025-10-25) | 1 min read
#powershell

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.

Source code

PSGallery package

Linked: Powershell PSDefaultParameterValues

A deep dive into PowerShell parameter defaults

Posts | 2021-03-27 (updated 2025-10-23) | 1 min read
#linked-posts #powershell

I published a post about how to work with parameter defaults in PowerShell over on the ScriptRunner blog.

Read now: English or Deutsch

The Null-Coalescing Operator

A Closer Look at the Null-Coalescing Operator and How It Can Help Us in Writing Smarter, More Concise Scripts.

Posts | 2021-03-22 (updated 2025-10-23) | 1 min read
#powershell #snippets

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

Posts | 2021-01-01 (updated 2025-10-22) | 3 min read
#powershell #sysadmin #vmware-powercli

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.

Read more…

How to Find With PowerShell

Finding Files, Do I Even Need to Describe How Important This Is?

Posts | 2020-12-31 (updated 2025-10-23) | 5 min read
#powershell
Series: Bash to PowerShell

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!

Posts | 2020-12-02 (updated 2025-10-23) | 4 min read
#powershell #productivity

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

Posts | 2020-12-02 (updated 2025-10-23) | 1 min read
#linked-posts #powershell

I published a post about aliasing with PowerShell over on the ScriptRunner blog.

Read now: English or Deutsch

Powershell 7

Why Installing PowerShell on Windows May Actually Be a Good Idea

Posts | 2020-11-28 (updated 2025-10-23) | 2 min read
#powershell #windows

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…