question

ImtiazAli-8804 avatar image
0 Votes"
ImtiazAli-8804 asked AllenLiu-MSFT edited

CS.ini automatically select task sequence based on model

What I want to accomplish is for MDT to automatically select the task sequence based on the model, and if there is no match to run a generic deployment. but it's not selecting the task sequence automatically. any idea, how can i achieve this goal. Thanks

[Settings]
Priority=Models,Default
Properties=MyCustomProperty, ShortModel

[Default]
_SMSTSOrgName=myCompany
SkipAppsOnUpgrade=NO
UserDatalocation=AUTO
OSDComputerName=#Left("%Model%",4)#
DoCapture=NO
OSInstall=YES
SkipAdminPassword=YES
SkipBDDWelcome=YES
SkipBitLocker=YES
SkipCapture=YES
SkipComputerName=YES
SkipFinalSummary=YES
SkipLocaleSelection=YES
SkipProductKey=YES
SkipSummary=YES
SkipTaskSequence=NO
SkipComputerBackup=YES
SkipTimeZone=YES
SkipUserData=YES
TimeZone=035
TimeZoneName=Eastern Standard Time


[Models]
ShortModel=#Left("%Model%",4)#
Subsection=TS-%ShortModel%

[TS-20L8]
TaskSequenceID=TS-20L8
SkipApplications=YES


SkipTaskSequence=Yes

[TS-20QG]
TaskSequenceID=TS-20QG
SkipApplications=NO

mem-mdt
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AllenLiu-MSFT avatar image
0 Votes"
AllenLiu-MSFT answered AllenLiu-MSFT edited

Hi, @ImtiazAli-8804
Thank you for posting in Microsoft Q&A forum.

I think you made some changes of below thread to generate the CustomSetting.ini, I also think it should be work.
https://social.technet.microsoft.com/Forums/en-US/b63936d5-c1bf-4034-85aa-a6ddb139fc86/csini-automatically-select-task-sequence-based-on-model?forum=mdt

Here is a great article explained the CustomSetting.ini, and we can run ZTIGather.wsf against the cs.ini to check the result, then we may know why it's not selecting the task sequence automatically.
https://deploymentbunny.com/2012/04/21/back-to-basic-customsettings-ini-explained/

(Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.