Dan Schroeder
Blogs, Articles, and Posts
A PowerShell function to easily retry any code
(blog.danskingdom.com)
Performing retries to make your code more resilient is a common pattern. By leveraging a PowerShell
By: Dan Schroeder submitted:Aug 23 2024
Performing retries to make your code more resilient is a common pattern. By leveraging a PowerShell
ScriptBlock, we can create a function to avoid constantly rewriting the same retry logic again and again.
By: Dan Schroeder submitted:Aug 23 2024
A simple PowerShell script template I use when creating new scripts
(blog.danskingdom.com)
I spin up new PowerShell scripts all the time, whether just for quickly experimenting and testing
By: Dan Schroeder submitted:May 31 2024
I spin up new PowerShell scripts all the time, whether just for quickly experimenting and testing
things out, or for projects that I know will be around for a while. There's a few basic things that I like all my scripts to have, so I've created a simple template that I use when creating new scripts.
By: Dan Schroeder submitted:May 31 2024
PowerShell class definition pros, cons, and performance comparison
(blog.danskingdom.com)
There are 3 different approaches that can be taken to defining classes and enums in PowerShell. In
By: Dan Schroeder submitted:Sep 29 2023
There are 3 different approaches that can be taken to defining classes and enums in PowerShell. In
this article we will compare the pros, cons, and performance of each approach.
By: Dan Schroeder submitted:Sep 29 2023
Resolve PowerShell paths that do not exist
(blog.danskingdom.com)
In this post we'll see how to resolve a file or directory path, even if it does not exist.
By: Dan Schroeder submitted:Sep 29 2023
In this post we'll see how to resolve a file or directory path, even if it does not exist.
By: Dan Schroeder submitted:Sep 29 2023
Type less by using PowerShell type accelerators
(blog.danskingdom.com)
I had heard the PowerShell term "type accelerators" a few times, but never really knew what that
By: Dan Schroeder submitted:Oct 18 2024
I had heard the PowerShell term "type accelerators" a few times, but never really knew what that
meant. I finally decided to check out the about_Type_Accelerators docs and it turns out they're simply aliases for .NET types.
By: Dan Schroeder submitted:Oct 18 2024
Community
PowerShell + DevOps Global Summit 2024 reflections
(blog.danskingdom.com)
I'm sitting in the airport waiting for my return flight after what has been an awesome week at the
By: Dan Schroeder submitted:Apr 19 2024
I'm sitting in the airport waiting for my return flight after what has been an awesome week at the
PowerShell + DevOps Global Summit 2024, North American edition in Bellevue, Washington. There's a whirlwind of things going through my mind, so I thought I would try and capture some of them here.
By: Dan Schroeder submitted:Apr 19 2024