A Task Sequence deployment in SCCM can be set to Required to start the deployment without any user interaction (F12 etc.). Also the rerun behavior can be set to Always rerun program to keep running the deployment until the object (Resource) is removed from the collection.
These two options make it easy to (re)start a new deployment from within SCCM by adding the Resource to the Collection.
But… the option Always rerun program will rerun the Task Sequence until the resource is removed from the Collection. Removing the Resource after a Task Sequence is finished is not a default option within SCCM, but using the following guide and script it is possible. The script will also write an output to a log file so by checking the file or check if the Resource is still member of the Collection it is possible to check if the Task Sequence is finished.
Download the script here
Add a Resource to the Collection and start the Task Sequence, check if the Resource is remove when the Task Sequence is finished. It is also possible to check the log file to see if the script has succesfully ran.
Comments are closed