I want to give my users the option to easily re-image their PC, so i want the ability to create a ZCM bundle that: #1 assigns a certain image bundle, #2 applies this to the device, #3 does a reboot

#1 can be done by using a req key (zac -k) to include the device in a workstation group that has the image bundle assigned (but first make sure no image bundle is directly assigned)
#2 cannot be done with zac command today
#3 can be done

The best/simplest would be a "zac do-image-bundle"

In ZCC as admins we can assing an image bundle to a device, and apply assigned image, to make this push out at next reboot.
We can also use zman commands on the server side to assign bundles and apply assigned image work (but we cannot zman un-apply-assigned-image-work)

Comments

  • Would like to see this too and use it as part of my image-hardening-testing. We leverage dynamic images a log, mostly leveraging ENGL Imaging Toolkit, so bundles get installed as part of the process. For image-hardening I leverage a VM that is set to re-image at the end of the process automatically, so as long as this process runs we know the image deployment is still running fine and no show stopper bundles are part of the bundel install phase. Today I have to put a file on a share where zman has access so the server can run a scheduled script that sets the re-image key on the device in zcm after which the auto reboot and re-image of the endpoint is triggered. Being able to do this client side would make this setup a lot more simple.