PoshBytes: Add-Content vs Out-File
PoshBytes: Add-Content vs Out-File Today, we’re tackling two cmdlets that both claim to “write to a file” but behave like distant cousins at a family reunion. That’s right, it’s Add-Content vs Out-File. This post is a companion for the video embedded below. Scroll down to see the code from the video. Step 1: Behold the Data Let’s start with some gloriously...
PoshBytes: Tee-Object
PowerShell Magic with Tee-Object: Have Your Output and Use It Too Have you ever run a PowerShell command and thought, Gosh, I wish I could save this output and keep using it in the same pipeline! That’s where Tee-Object comes in — like a benevolent wizard that hands you a copy of the scroll and sends it off to the...
PoshBytes: Write-Host vs Write-Output
Write-Host vs Write-Output: What’s the Difference? In PowerShell, Write-Host and Write-Output are often mistaken for interchangeable commands. This post is a companion for the video embedded below. Scroll down to see the code from the video. Side-by-Side Comparison Write-Host "Hello from Write-Host" Write-Output "Hello from Write-Output" At first glance, they both display text to the screen. However: Write-Host sends output directly...
PowerShell Collaboration Unleashed: Setting Up The Littlest JupyterHub (.NET 9 update)
This post is an updated version of the accompanying post for the JupyterHub Install with PowerShell Notebooks video that is part of the PowerShell Collaboration Unleashed series. This post is updates the commands for installing using .NET 9.
PowerShell Collaboration Unleashed: Setting Up The Littlest JupyterHub
This post is an accompanying post for the JupyterHub Install with PowerShell Notebooks video that is part of the PowerShell Collaboration Unleashed series.
PowerShell Collaboration Unleashed: VM Setup for The Littlest JupyterHub
This post is an accompanying post for the VM Setup video that is part of the PowerShell Collaboration Unleashed series.
Find All agent-based Hybrid Runbook Workers
In case you are not away the Microsoft Monitoring Agent (MMA) will be retired on 31 August 2024. Prior to this date you will need to migrate all your agent-based hybrid workers to the extension-based worker. Microsoft has provided plenty of guidance on migrating the existing agent-based hybrid workers to extension-based hybrid workers. However, it may be difficult to keep...
2023: A PowerShell Year in Review
2023 was quite the year for me and PowerShell, so I thought I would put together a brief summary of the year as I saw it. Plus provide you with some fun and interesting statics from the PowerShell Weekly newsletter. This year was also a huge year for me. My book Practical Automation with PowerShell was released in April. This...
Display Profile Functions
If you are like me and have multiple machines you work on with different profiles, it can be difficult to remember which profile contains which functions. So, I wrote a quick function that will display all the functions for me on start up. Just add the code below to the bottom of your $profile file. Function Get-ProfileFunctions { $__ProfileFunctions =...
Converting Visio to PNG and SVG
When working in Visio, it is not uncommon that you need to export your diagram to a picture for sharing or placing in documentation. For example, when writing, I will often have multiple Visio diagrams that I continually tweak throughout the process. So, I wrote a function to take all the Visio diagrams in a folder and export them to...
