PowerShell Quickie: Filtering “special” profiles

Again… why was this seemingly so difficult to Google/Bing… I frequently have to write PowerShell code where I need to get the profiles on the computer and then manipulate it somehow… so I noticed that there’s a property in the Win32_Userprofile class called “Special” which returns “True” when it’s a system profile. I was trying…

Powershell Quickie: Get logged on user then “do (or don’t do) something”

Good day, friends: Today, I spent waaaaaay too much time trying to figure out the answer to a simple question of “when you query WMI for the logged on user and no one is logged on, is the result <blank> or <null>?” Simple answer is “Null.” And here’s the stupid PS quickie I used.  This…

Publish one or more APPV applications with PowerShell

When I’m building an APPV application, as best practice, I do so in VMs, right… and I need to quickly test it in the VMs to make sure the app functionality is all there… so my config is this… take the script below, copy it to your client VM you use for testing into the…

Enhanced PS script making CMTrace default log reader

Credit to Jörgen Nilsson for the original post but this didn’t quite meet my need as we absolutely abhor using ActiveSetup actions in our environment — instead what we do is add a profile parse to grab the existing profiles and mount the Registry for the user and insert the Registry key (obviously if it fails…