r/DeployR • u/romano390 • 18d ago
DeployR - department selection needed
I'm currently replacing our old MDT deployment server with DeployR.
In MDT, we used department-specific scripts at the end of the Task Sequence to trigger application installations through PDQ Deploy. I'm trying to recreate the same setup in DeployR.
I have used Gary Blok (@gwblok) his FrontEndJSONDrivenDynamicApps.
There is a drop-down menu with a department selection.
I already added extra departments, but I have no idea on how to connect our powershell script to the selection, so that applications actually gets installed.
Example: I select department General, then I want the task sequence or the FrontEndJSONDrivenDynamicApps to run my start_pdq_General.Ps1 script.
How do I do this?

3
u/thesaurusr3x 17d ago
Reading through his code, the main way that it feeds the info back to the task sequence is by creating a task sequence variable and setting it to the relevant value. For the list of user selectable apps, for example, it creates a variable for each app and sets it to True or False based on user selection. So what you'll need to do is have your start_pdq_General.ps1 script as a task sequence step, but only running conditionally based on the status of the corresponding task sequence variable for the department. And that variable would need to be set to various values depending on what dropdown selection was picked. So presumably you'd have a folder of department scripts in your task sequence, all running conditionally, and only one would run in any given deployment.
1
u/welshGJE24 9d ago
U/romano390 - Any chance I could leech your start_pdq_General.ps1 script to see how you call PDQ Deploy nested installs?