While PSSession has taken over a lot of the psexec uses in the last 10 years many of us still use psexec for specific edge cases, see for example my post about running powershell as SYSTEM user. Today I had another edge case where I needed to start a process as one user on another…
Category: Powershell
Getting nested nuget dependencies using Powershell
How to quickly find the path of exe / binary / command files on you computer
A few days ago I wanted to find where exactly a binary/exe "command" was located on the disk, specifically nuget. I tried checking the path variable but was unable to find anything useful. Turns out that once again Powershell had a quick solution. I thought Get-Command only showed you Powershell cmlets, that's wrong. It works…
Installing all drivers in a driverpack folder using Powershell
Running a Powershell script on your code before a git commit using pre-commit
If you’re looking to use PowerShell with the open-source framework called pre-commit, this isn’t the right article for you. Instead, I’ll be focusing on Git’s built-in pre-commit functionality without relying on any third-party tools. If that sounds confusing, don’t worry, I’ll explain this later on. I just wanted to clarify this at the beginning so…
How to invoke a Task Sequence on your machine using Windows Powershell
Powershell script for getting your Configuration Manager servers
Something I find very hard to do in practice is keeping documentation up to date, if you don't automate this it simply will not get done. In this post I am sharing a PowerShell function that can be used to get all your Configuration Manager servers and what roles they have, great for building automated…