SCCM 2012, Powershell and DCM

This is something we have wanted to start using for a while and now we are I thought I would share my findings.

For those that don’t know DCM (Desired Configuration Management) as it was known in ConfigMgr 2007 is now simply referred to as compliance and comprises configurations items and configurations baselines. Basically baselines are deployed much like applications to workstations. These baselines are usually made up of configurations items used to check compliance to a particular setting or application. Baselines can also include other baselines. At the uni we have had incidents where a machine is deployed with OSD and for some reason or another an application will fail to install. These applications have all been thoroughly tested so we know they work both in and out of task sequences. So we need to be able to see which machines in our classrooms are missing software. We have around 1500 – 1800 teaching machines so it needs to be something we can manage centrally. DCM/Compliance fits the bill here.

We like the built in reports but they aren’t flexible and require quite a bit of drilling down. We ideally want something for our junior technicians to be able to quickly say X machine in location Y is not compliant, we need to go see whats wrong and in the same breath see that a machine is compliant so no in depth checks are required.

The way we decided to approach this issue was with powershell and WMI. We can use the WMI namespace root\ccm\dcm and the class SMS_DesiredConfiguration to pull information on configuration baselines. (more…) (57)

Read More

Powershell create shortcut functuin

Simply function to create shortcuts.

Usage is very simple just use it like so

If you want to leave a parameter blank just put “” in its place. Tested on Windows 7. (203)

Read More

SCCM 2012 Application Detection Methods/Configuration Items

I thought I should share my experience on this subject as it is quite common. Many times an application is created in SCCM 2012 that is not a Windows Installer application this means coming up with a detection method. You can do this using a file check or folder path check but I prefer to use a bit of powershell. This can also be pretty good if you are using Compliance/DCM to create configuration items for configuration baselines. (more…) (387)

Read More

SCCM 2012 OSD Task Sequence Copy Logs

So I noticed in an MDT task sequence on SCCM 2012 there is a step called “Copy Logs” that calls ZTICopyLogs from MDT. We often get calls from remote support staff where they are reporting “This machine has failed deployment”. This then leads to us explaining where these guys can locate the logs and getting them to email the logs to me or a colleague in the deployments team  to identify the cause of the failure. This got me thinking that the copy logs step would be great if it could copy the logs to a share somewhere. (more…) (2329)

Read More