MDT Tips: Let us use the RulesFile variable

Reply A+ A-

Last week, I shared a wizard that allows you to select an external Customsettings.ini file.
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
Then let's browse to the VARIABLES.dat file and open it. 
We can see that the value for the Rulesfile variable is Workgroup_French.ini.
RulesFile value in VARIABLES.dat
Now we'll choose another ini profile, Workgroup_Spanish.ini 
Workgroup_Spanish.ini profile
After looking to the dat file we can see that the RulesFile variable is now Workgroup_Spanish.
Rulesfile value in VARIABLES.dat

Microsoft Deployment Toolkit 3698068047449720616

Enregistrer un commentaire

Accueil item


Learn KQL in one month


You want to support me ?

Mes articles en français

Books in French