Skip to content
Menu
ScriptingNerd
  • Home
  • Quick Tips
  • GitHub
ScriptingNerd
PS C:\> Get-BlogPost -ID 9ba0e44

Running a Powershell script as the system user

Posted on January 22, 2024September 26, 2025 by Patrik

I want to begin this one with a short warning, system is the highest access you can get in Windows and you can really break things here, keep that in mind and don't do anything stupid. Now with the warning out of the way, why would you want to run something as the system account?…

PS C:\> Get-BlogPost -ID 46991b1

How to sign your git commits on Windows to get verified checkmark on GitHub

Posted on August 11, 2023September 26, 2025 by Patrik

GitHub has this feature where they can show/verify if commits have been signed by the user or not, usually you only see it when people have done changes from the web interface but it is actually possible to sign the commits that you do on your computer as well and have GitHub recognize it as…

PS C:\> Get-BlogPost -ID 2c5e967

How to download CMTrace from Microsoft

Posted on February 2, 2023May 6, 2025 by Patrik

Update 2025-05-06: While not from Microsoft the company PatchMyPC has uploaded cmtrace on their website, if you trust them (I do) it is much quicker then the original method from Microsoft. https://patchmypc.com/cmtrace I was recently faced with a problem, I wanted needed CMTrace to read a logfile from one of my scripts on a computer…

PS C:\> Get-BlogPost -ID 0fb2729

Powershell counting to $null instead of 1

Posted on April 19, 2022February 2, 2023 by Patrik

There is this weird thing in Powershell that you might have come across if you have ever counted how many objects you have. In some cases Powershell will count 0 $null 2 3… You could say that this is a side effect of how Powershell tries to "magically" simplify stuff. The thing is, it doesn't…

PS C:\> Get-BlogPost -ID 30f16ce

Running ForEach in parallel on Windows Powershell 5 (and older)

Posted on November 27, 2021April 20, 2022 by Patrik

What we are looking at today is something I have seen people ask for time and time again but never seen a good pre-built solution for. I used to have my own "manual" and clunky way of doing this but then when looking for something completely different I just happened to stumble upon this little…

PS C:\> Get-BlogPost -ID 5f197c2

Use Powershell to create a "fake" program in the programs and features list for indexing purposes

Posted on March 13, 2020September 5, 2024 by Patrik

For a reason I won't go in to here I recently had to create a fake program in the programs and features list of a computer. One example when this might be useful is for indexing purposes but there are other usecases for it as well. Since this list is saved in the registry adding…

PS C:\> Get-BlogPost -ID cf82345

How to read the manifest of an appx package file using Powershell

Posted on December 10, 2019April 20, 2022 by Patrik

Reading the manifest of an installed appx package is easy, however today a colleague of mine was working on a custom install script for appx packages and quickly found out that Microsofts Get-AppxPackageManifest can't be used on an actual appx file. Some quick testing later and we now have an extended version of the function…

PS C:\> Get-BlogPost -ID 94de9de

Building Powershell GUIs that won't freeze when you use them

Posted on February 15, 2019April 20, 2022 by Patrik

A few days ago I wrote about how important I think it is that you build a GUI for your scripts if they are to be used by anoyone else. If you have ever built a GUI using Powershell however, you know there is a problem with it that I didn't mention, that is, whenever…

PS C:\> Get-BlogPost -ID d15452a

Writing Powershell GUIs the easy way

Posted on February 9, 2019April 20, 2022 by Patrik

One of the most important tools for any IT professional or service desk technician that works in a Windows environment is without a doubt Powershell. Not only is it extremely powerful but it is also very fun to work with if you ask me. One of the great features of Powershell that I feel doesn't…

  • Previous
  • 1
  • 2
  • Image

    Patrik Johansson
    Developer

    Coming from a background as a Senior System Administrator I am working with a wide flora of enterprise systems.

    Passionate about Powershell and building tools that are easy to use for everyone.

    In my spare time I work on other coding projects as well, mainly Booksonic and Home Assistant integrations

    LinkedIn GitHub Blog

Recent Posts

  • Finding out how many queries your DB handles
  • How to open a program as your user on another users desktop remotely
  • Getting nested nuget dependencies using Powershell
  • A digital Sticky note that is always on top
  • How to quickly find the path of exe / binary / command files on you computer

Archives

  • September 2025
  • May 2025
  • November 2024
  • September 2024
  • January 2024
  • August 2023
  • February 2023
  • April 2022
  • November 2021
  • March 2020
  • December 2019
  • February 2019

Categories

  • Device Management
  • Git
  • Powershell
  • Quick Tips
  • Below are affiliate links, if you click on them and buy something I may earn a small amount of money without any additional cost to you. Any links found here are for products I am using myself and can vouch for.
  • InterServer
    Very cheap SSD/HDD based virtual servers (VPS). Starting at $6/month for 1TB. Use coupon code BOOKSONIC and get the first month for just 1 cent. I have recently started using intersever for personal projects and so far I am very happy with them.
  • Contabo
    Cheap HDD/SSD/NVMe based Virtual servers (VPS)
    I have used Contabo for years both for my private needs as well as to host the booksonic demo server
©2026 ScriptingNerd | Powered by Superb Themes
Advertisement