MDT Tips: Let us use the RulesFile variable
https://www.systanddeploy.com/2017/02/mdt-tips-lets-use-rulesfile-variable.html
In this quick post I will show you the MDT variable, RulesFile, that is used in this wizard.
As I often say, you can do almost whatever you want with MDT by looking at the files from the Scripts folder.
For instance, in ZTIGather.wsf you can find how is used the Customsettings.ini.
See below the used part for the ini, line 2115.
As you can see there is an awesome variable, awesome for me :-), called RulesFile.
It will determine the path of the ini file, by default Customsettings.ini, to apply during your deployment.
In my previous post I used this variable as below.
All external ini profiles are listed in a ListBox and once a profile is selected the RulesFile variable will use the path of this profile.
Now let us check the RulesFile value from VARIABLES.dat after choosing different ini profile.
We will first choose the Workgroup_French.ini file in the wizard.
Workgroup_French.ini profile |
We can see that the value for the Rulesfile variable is Workgroup_French.ini.
RulesFile value in VARIABLES.dat |
Workgroup_Spanish.ini profile |
Rulesfile value in VARIABLES.dat |
Enregistrer un commentaire