Have you ever been in the situation where something unexpected happens on a users computer and people start pointing their fingers at the ConfigMgr admin and asking "has anyone deployed something with SCCM?" Well, I decided to write a PowerShell script to retrieve the execution history for ConfigMgr programs on a local or remote client. … Continue reading Get Program Execution History from a ConfigMgr Client with PowerShell
Author: Trevor Jones
Get Previous and Scheduled Evaluation Times for ConfigMgr Compliance Baselines with PowerShell
I was testing a compliance baseline recently and wanted to verify if the schedule defined in the baseline deployment is actually honored on the client. I set the schedule to run every hour, but it was clear that it did not run every hour and that some randomization was being used. To review the most … Continue reading Get Previous and Scheduled Evaluation Times for ConfigMgr Compliance Baselines with PowerShell
[Unsupported] Getting / triggering ConfigMgr Client Programs using Software Center Code
An odd title perhaps, but I recently had a requirement to retrieve the deadline for a deployed task sequence on the client side in the user context using PowerShell. You can find this info in WMI, using the CCM_Program class of the ROOT\ccm\ClientSDK namespace. Problem is, standard users do not have access to that. I … Continue reading [Unsupported] Getting / triggering ConfigMgr Client Programs using Software Center Code
ConfigMgr Housekeeping Scripts
ConfigMgr is a bit like a garage - you throw all kinds of stuff in there over the years, and then one day you decide to go through everything and chuck out the stuff you don't need anymore. It's a time-consuming process and sometimes there are difficult decisions to be made - do I / … Continue reading ConfigMgr Housekeeping Scripts
Setting the Computer Description During Windows Autopilot
I've been getting to grips with Windows Autopilot recently and, having a long history working with SCCM, I've found it hard not to compare it with the power of traditional OSD using a task sequence. In fact, one of my goals was to basically try to reproduce what I'm doing in OSD with Autopilot in … Continue reading Setting the Computer Description During Windows Autopilot
Windows 10-Style Context Menu for System Tray Application
I saw a recent post by Damien van Robaeys on creating a system tray (aka notification area) app with a context menu and I was reminded of a project I've been working on for a while for an app which minimizes to a tray icon with a context menu - except that I wanted a … Continue reading Windows 10-Style Context Menu for System Tray Application
Windows 10 Upgrade Splash Screen – Take 2
Recently I tweeted a picture of the custom Windows 10-style splash screen I'm using in an implementation of Windows as a Service with SCCM (aka in-place upgrade), and a couple of people asked for the code, so here it is! A while ago a blogged about a custom splash screen I created to use during … Continue reading Windows 10 Upgrade Splash Screen – Take 2
Forcing Installation of the MDT ConfigMgr Integration WMI Classes
Today I encountered an unexpected issue installing the ConfigMgr Integration for MDT. The scenario was an environment with several SMS providers and 2 site servers in a high availability configuration (active / passive). The MDT ConfigMgr Integrations ran successfully on each of the SMS Provider servers, but on the passive site server the BDD_* WMI … Continue reading Forcing Installation of the MDT ConfigMgr Integration WMI Classes
Retrieving Local Logon Events from the SCCM Client WMI
Usually when querying the logon history of a Windows system you might query the Security event log or a domain controller. But if you're using SCCM, the SCCM client also logs user logon events and stores them in WMI. Here's a quick PowerShell script to retrieve those events and translate them into meaningful values. You … Continue reading Retrieving Local Logon Events from the SCCM Client WMI
Just for Fun – Send a Remote Toast Notification
Did you know you can send a custom toast notification to a remote computer? Call it poor man's IM, but if you're using Windows 10 with PowerShell remoting enabled it might be a good way to annoy your colleagues if you can't find a more constructive use! Try the following code, which creates a notification … Continue reading Just for Fun – Send a Remote Toast Notification