Compact Hyper-V VHDX files using PowerShell

I used VMware Workstation for a while which has an option to automatically compact the virtual hard disk after shutting down the VM, an excellent way of freeing up space on my laptop hard drive. But I switched to using only Hyper-V now, compacting virtual hard disks is not something you can enable in Hyper-V to run automatically. In this blog post, I will show you how to do this using a script that you can use to do that in an easy way 🙂

Create a focus time countdown clock using PowerShell

Sometimes you really need to finish something and notifications from your running programs keep taking away your focus... You can try using the script in this blog post to keep focused on your task, when the count-down timer is done your programs will be available again. Hope this helps 🙂 Table Of ContentsshowWhat is focus … Continue reading Create a focus time countdown clock using PowerShell

Create a TCP/UDP port listener using PowerShell

One of our customers is securing his network and firewall changes were made that needed to be tested. In this case, the new servers were not deployed in that specific network yet. But... We did want to test the connections before deploying the servers 🙂 In this blog post, I will show you a way how to create listening ports on a machine in order to test the connection from another network using netcat on Linux or portqry on Windows.

Jupyter notebooks in VSCode with PowerShell support

Saw a video about Jupyter in Visual Studio Code a while back, tried to get it up and running, and... It seems that things are changed now, it was there in VSCode preview versions together with the PowerShell preview extension. All the How-To's I found showed me that way of getting it installed/configured. So I played around a little bit with Jupyter and the PowerShell kernel installation and got it working in VSCode, in this blogpost I will show you how to install and configure everything 🙂