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…

Error 5 (Access Denied) while trying to apply default app associations in Windows 10 1809

Hello friends: It seems that with every release of Windows 10, Microsoft throws us a curve ball that we must “figure out.”  What mysterious “change” from the previous version is now causing our typical image customization to fail? This time, it’s customizing the default application associations. It appears that Microsoft decided, in this version, to…

Collection Queries based on Organizational Units (OUs) in Active Directory (AD)

Hi everyone. Thought I’d throw a quick piece of advice (and some background, of course) for you to help reduce the time it takes for overall collection evaluation in your Configuration Manager (ConfigMgr) environment. One of the best practices in ConfigMgr environments is to monitor the time it’s taking your processes to evaluate collection membership…

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…