cSCCM 1.4 for Hydration and Management Fun!

For the administrators out there who would like a faster way to hydrate initial collections in SCCM or perhaps use DSC to help lock things down.   I created this collection of resources and bundled them into cSCCM for general use, but it started a my own rapid deployment cheat sheet.

What’s in it?

There are currently 3 resources that are ready to go:

  • cCMCollection
  • cCMCollectionRule
  • cCMFolder

These three collections will allow you to create most attributes of a collection from its name and folder placement, to “x” number of collection rules (including direct, exclude, include, and queries).  As the script improves I plan on adding maintenance windows and other goodies as a hope to be able to build a rather complete hydration scenario that goes beyond the install (which you can find in a lot of places now).

What Does it require to run?

Just PowerShell 3.0 and SCCM!  Well, technically just the SCCM Administrative Console, as that includes the SCCM PS modules that this DSC module uses as needed.  Remember that SCCM uses it’s own security, so just like with other DSC modules, you will have to provide the configuration with credentials to sign into SCCM and check/generate objects.  Those using this script to hydrate fresh SCCM environments should log in at least once first and verify permissions are in place!  Probably the biggest problem I run into with this script.

There’s also a sample script in the examples directory.  Just make sure to modify the server name before you try running it:

Snippet below:

$Nodes = @{
AllNodes = @(
NodeName = “SCCM01”
DSLPath = ‘P:\DSL’

Change SCCM01 to your actual sever name.  Also note the “DSL” stands for Definitive Source Library … I simply use it to populate my initial folder structure for all the source files in SCCM.  Feel free to delete that variable entirely and the sample script will skip it.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s