Skip to main content
Question

Add Computer to Static Computer Croup via Casper Imaging


Forum|alt.badge.img+7

Hi All.

Is there a way to assign a coumputer to a static computer group druing imaging with Casper Imaging. It would be nice to have a Group Assignmant Tab where you can select the groups the computer belong to.

Thanks for any tips.

5 replies

mm2270
Forum|alt.badge.img+16
  • Legendary Contributor
  • 7880 replies
  • May 13, 2016

No way to do it I know of in Casper Imaging, so you should probably submit a Feature Request (might already be one submitted). There is always the API in a script which allows you to add computers to Static Groups, but I'm not sure if the script would need to run after the first boot of the device to work or if it could run during imaging to do it.


Forum|alt.badge.img+10
  • Contributor
  • 207 replies
  • May 16, 2016

When imaging is started, a blank record for that computer is added to Casper admin. The name of the computer is all that is added to the record until after imaging has completed.

Therefore, you could create a smart group and set the criteria to Computer Name IS xxxxx01, etc. The computer record would be added to the smart group before imaging has completed.

I do this with my test machine. If I delete the computer record from Casper, it is removed from the smart group. Once imaging has kicked off, the computer appears back in the smart group and policies assigned to that smart group continue to deploy!


davidacland
Forum|alt.badge.img+18
  • Valued Contributor
  • 1811 replies
  • May 16, 2016

The only way to automatically do it now would be an API script. Not sure if thats something you want to look at getting set up though?


Forum|alt.badge.img+14
  • Contributor
  • 270 replies
  • May 16, 2016
There is always the API in a script which allows you to add computers to Static Groups

I haven't used that API, but it sounds like you could:

  1. Create one script for each static group (script uses the API to add the Mac to the group)
  2. Set the scripts to run at reboot, but don't add them to your configuration
  3. Add the computer to the static group in Casper imaging by clicking Customize and selecting the appropriate script

Forum|alt.badge.img+7
  • Author
  • Contributor
  • 27 replies
  • May 24, 2016

Thanks all for your help.
Using the Casper API may solve that issue but it is still to complex (for me) as you have to always create a new script if someone creates a new static group. So, i will stay on adding Computer to static groups after Imaging via the JSS.

Thanks all


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings