Skip to content
Menu
ScriptingNerd
  • Home
  • Quick Tips
  • GitHub
ScriptingNerd

Category: Quick Tips

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

How to download CMTrace from Microsoft

Posted on February 2, 2023February 2, 2023 by Patrik

I was recently faced with a problem, I wanted needed CMTrace to read a logfile from one of my scripts on a computer that didn't have it. As a tangent, a friend of mine has a great logging script available here, it won't write in the CMTrace format by default but you can ask it…

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 5f197c2

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

Posted on March 13, 2020February 2, 2023 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…

  • Patrik Johansson
    Senior System Administrator

    Working with a wide flora of systems but with a focus on Configuration Manager (MEMCM/SCCM).

    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

    LinkedIn GitHub Blog

Recent Posts

  • How to download CMTrace from Microsoft
  • Powershell counting to $null instead of 1
  • Running ForEach in parallel on Windows Powershell 5 (and older)
  • Use Powershell to create a "fake" program in the programs and features list for indexing purposes
  • How to read the manifest of an appx package file using Powershell

Archives

  • February 2023
  • April 2022
  • November 2021
  • March 2020
  • December 2019
  • February 2019

Categories

  • 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
©2023 ScriptingNerd | Powered by WordPress & Superb Themes