Giving Something Back Blog

change-1245949_640 2

CIM vs. WMI CmdLets – The top reasons I changed over

Some time ago I moved most of my WMI related work from the “deprecated” PowerShell WMI CmdLets (Get-WMIObject, Invoke-WMIMethod, etc.) over to the “new” CIM CmdLets (Get-CimInstance, Invoke-CimMethod, etc …). It wasn’t really because they are “deprecated”. Microsoft might treat them this way, but they will for sure be around...

cardboard-1164196_640 0

Exporting Task Sequences from ConfigMgr to plain xml files

In the last blog post I showed a script that would allow you to import a Task Sequence from an xml file as the ones being created by the Task Sequence monitoring script (see http://maikkoster.com/versioning-monitoring-sccm-task-sequences/ for details). As this covered a need that I basically created myself by publishing a...

cardboard-box-161578_640 2

Importing Task Sequences into SCCM/ConfigMgr

The Problem One of my probably mostly used scripts is a VBScript that monitors for any changes on Task Sequences in SCCM and exports a copy for backup purposes when an updated task sequence is saved. Please see http://maikkoster.com/versioning-monitoring-sccm-task-sequences-update-for-sccm-2012/ for further details about the script itself. Even it has been...

sport-1014004_640 3

Start, Cancel or Delete a SCCM Client Operation

In my last post, I demonstrated how to call the InitiateClientOperation method from the SMS_ClientOperation WMI class to run a SCEP Full Scan. However, this call itself is pretty limited for daily administration, as it requires “internal” information like the CollectionID, ResourceID or some TypeID for the Operation itself. Probably...

proximity-150698_640 1

Initiate SCEP Full Scan by script using SCCM Client Operations

Lets assume you have a security device that detects computers possibly infected by some malware. Wouldn’t it be nice to automatically initiate some immediate action for remediation? I recently had such a requirement where we wanted to automatically start a definition download and full scan on those computers. It’s pretty...

gears-534989_640 0

Immediately see what your PowerShell script does – move the main code to the top

I’m currently updating/rewriting a whole slew of PowerShell scripts that I have created over the last couple years into something less “hacky”. As scripts grow larger they become harder to read or understand the logic. A typical and recommended approach is to break it up and separate certain functionality or...

binary-139841_640 0

Finally, debugging VBScript and JavaScript for free! – Visual Studio Community 2013 published

One of the most popular posts I’ve written so far was about using Visual Studio Express to debug VBScript and JavaScript in local scripts, hta files etc. Probably not popular in terms of the absolute count of visitors, as the target audience of my blog is pretty straightforward due to the...