gomezar 0 Posted May 5, 2017 Report post Posted May 5, 2017 Morning everyone, I'm looking for a better idea in how to deploy post task after the OSD task sequence is completed. We have several locations that require post scripts and additional software and will like to create a single task sequence with some sort of automation to deploy parts of the task sequence based on gateway or hostname prefix. I currently do my OSD automation by customizing the CustomSettings.ini file which works great, but post OSD I haven't been able to find a intuitive way to get this done. I did use the ZTI gather and Customsettings.ini file during this post task but it add more time to the post task sequence since it has to copy the MDT files to the machine first. any ideas, suggestions or link to how it's been done before will be much appreciated. Quote Share this post Link to post Share on other sites
simulacra75 2 Posted May 5, 2017 Report post Posted May 5, 2017 Dynamic Variables in your Task Sequence sound like they will do what you're looking for. It's under the "General" section of the Add Menu of a Task Sequence Quote Share this post Link to post Share on other sites
gomezar 0 Posted May 5, 2017 Report post Posted May 5, 2017 How can I dynamically figure out the location, for example.. let's say i wanted to add a condition to deploy a Group based on gateway or prefix of computer name. What would be the best variable to use that will give me this type of automation? Quote Share this post Link to post Share on other sites
simulacra75 2 Posted May 5, 2017 Report post Posted May 5, 2017 There's a specific Rule in Dynamic Variables called "Location". Perhaps you should read up on it. Quote Share this post Link to post Share on other sites
Eswar Koneti 29 Posted May 5, 2017 Report post Posted May 5, 2017 You can also go work wmi query in task sequence to query the ip address or ou location or any other unique value that tell you the location of the computer. Quote Share this post Link to post Share on other sites
gomezar 0 Posted May 5, 2017 Report post Posted May 5, 2017 I figure it out. I'm using my customsettings.ini file which is how I determined Region and Locations based on gateway and copy the ztigather.wsf, ZTIDataAccess.vbs, ZTIGather.xml, ZTIUtility.vbs and customsettings.ini. 1. Created a package with these files 2. replicated to DP's 3. Created Task Sequence with a run command line and selecting the new package 4. added command line "cscript ztigather.wsf" 5. added MySite variable to the groups created in the TaskSequence When I deploy the Task Sequence it run the ztigather.wsf setting all my variables based on the customsettings.ini file, this then determines the region and site based on gateway and it runs the appropriate section based on the variables. hope this helps someone out there. Quote Share this post Link to post Share on other sites