I would like to be able to give the user, under certain circumstances the ability to pick a different collection and associated task sequence when the computer is known and the computer belongs to a deployment group. Perhaps something like holding down the
shift key will bring up the wizard even if the computer is known and assigned to a particular OSD Collection already.
In some cases, I might be redeploying a machine and would like OSD to treat the computer as if it were unknown. For that to work, there would need to be either a way to delete the computer from a particular configmgr collection(s) or delete the object
from SCCM entirely.
Maybe I chose the incorrect task sequence from the list and I want to reboot an chose the correct on. At the moment, I have to open the SCCM console and delete the machine from the OSD target collection. It would be nice if the pre execution
hook routine could take care of that, but the ability to delete objects from collections or from the configmgr database entirely is missing.
Could you, in the next version, add a function to the service that can remove the client from a specified configmgr collection and/or one to delete a computer object from SCCM?
This could also be useful in the case where you may want to remove a client from the deployment target collection once the task sequence is complete. Calling the web service to do this would be very convenient.
Thanks for sharing your code. It has saved me a ton of time coding and frustration.