Autopkg SCCM (Windows) Processor?

578 views
Skip to first unread message

Matt Childress

unread,
Apr 20, 2016, 1:16:29 PM4/20/16
to autopkg-discuss
In their presentation at last year's Penn State MacAdmin's conference (http://macadmins.psu.edu/conference/resources/) James Stewart & Matt Hansen mention the lack/need for an SCCM processor for AutoPkg to import PC apps into SCCM.

Is anyone aware of whether this has been done (or in progress) yet?

Thanks,
M@

          Using AutoPKG for Windows Software – James Stewart & Matt Hansen (Slides, Video)

Chris Gerke

unread,
Apr 20, 2016, 6:35:47 PM4/20/16
to autopkg-discuss

I've created one that generates cmmac files that can be manually imported but that is as far as I've gone with it.

https://github.com/autopkg/cgerke-recipes/tree/master/SharedProcessors


--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matt Childress

unread,
Apr 20, 2016, 9:19:10 PM4/20/16
to autopkg-discuss
Yeah I saw that one but from looking at the source code it appeared that it was designed to work with Macintosh DMG, PKG or APP files and prep them for importing into SCCM (lots of references in the code to .dmg/.pkg/.app and no references to .exe or .msi files).  Correct me if I overlooked something though.

What I'm looking for is something that will let me take all of the *-win* recipes (autopkg downloads windows installers!) that James & Matt have created and get them prepped as much as possible for importing into SCCM.   Wondering how far down the road to take it on the mac side, as we're running AutoPkg (and Aamporter) via Jenkins and we can slave a Windows box running Jenkins to the Mac Jenkins, and have the Jenkins AutoPkg job on the Mac drop it where the Jenkins-PC-Windows slave can access it, have the Mac build job call the PC and finish off importing with Powershell from there.  Kinda wanna keep as much as possible in AutoPkg due to the awesomeness of crowd-sourcing and Github pull/fork requests in error remediation!  But again, feel free to say "Well you COULD do it that way, but what about..."

I don't do the SCCM side of things, but the guys on that side are learning A LOT from exposure to MacAdmins/Munki/AutoPkg.  It's fun to hear them say "Yes, but how do we get it to work like it does on the Mac..."

M@

Chris Gerke

unread,
Apr 20, 2016, 9:45:22 PM4/20/16
to autopkg-discuss
ah sorry didnt read the subject line correctly.i dont use AutoPKG for windows so would be a little tricky for me to write one, but shouldn't be too hard as powershell has an import module specifically for SCCM.

Chris Gerke

unread,
Apr 20, 2016, 9:57:09 PM4/20/16
to autopkg-discuss
Let me watch the vid and take a poke around. I can't imagine it would be too difficult. Initial thoughts though we be to do it like this....

  1. AutoPKG recipe to prep the app
  2. AutoPKG recipe to copy the app to a windows SHARE
  3. Have a Windows task running the powershell import (and some other logic to avoid duplications) that simply loops over your windows share

Chris Gerke

unread,
Apr 20, 2016, 11:51:22 PM4/20/16
to autopkg-discuss
Yup so I still don't see a vanilla web api for SCCM that is provided by microsoft, you'd have to write one.But there is several ways you could to this.

You could setup a system running SCCM admin that would be the TARGET system hosting the powershell importer.
  1. Create a share for the Mac AutoPKG processor to use as a TARGET
  2. Install OpenSSH here
  3. Add your powershell import script here
Then your processor could potentially.
  1. Use the cmmac creator processor as the parent
  2. Copy the cmmac file to the share
  3. Create the XML template and copy to the share
  4. Execute the powershell via a ssh session

How to install ssh on windows

Example sccm xml and powershell


Nicolas Daigneault

unread,
May 18, 2016, 11:53:49 AM5/18/16
to autopkg-discuss
The thing that I found that do a part of what you wan't is ruckzuck.

 http://rzander.azurewebsites.net/import-ruckzuck-applications-to-configuration-manager-2012/

But it can download,update, add an application on server only.  We can't do postflight, don't seem to support different language,...

For sure it is possible to do something in powershell, but I don't have the aptitude to do it.  I think ruckzuck could be a very good start, a lot of recipe already exist, it just need more "flexibility".

Nicolas
Reply all
Reply to author
Forward
0 new messages