Tu seras peut être m'aider, avec l'exemple donné, j'ai fais quelques chose comme ça, mais ca ne fonctionne pas.
[Settings]
Priority=Init,ByLaptop,ByDesktop,DefaultGateway,MACAddress,Default,CAPT_001,DEP_001
Properties=mySite,myPCType,myNumber
[Init]
myNumber=#Right("%SerialNumber%",5)#
[ByLaptop]
SubSection=Laptop-%IsLapTop%
[ByDesktop]
SubSection=Desktop-%IsDesktop%
[Laptop-True]
myPCType=LP
MachineObjectOU=OU=Computers,ou=***,dc=***,dc=***
[Desktop-True]
myPCType=PC
MachineObjectOU=OU=Computers,ou=***,dc=***,dc=***
[DefaultGateway]
192.168.***.***=Ro***
192.168.***.***=Ro***
192.168.***.***=Ro***
192.168.***.***=Ro***
192.168.***.***=Pa***
192.168.***.***=Re***
172.22.***.***=Re***
172.21.***.***=Re***
[Ro***]
WSUSServer=http://WSUS***:8530
mySite=***
[Pa***]
WSUSServer=http://WSUS***:8530
mySite=***
[Re***]
WSUSServer=http://WSUS***:8530
mySite=***
;---------Générale---------
[Default]
_SMSTSORGNAME=Execution %TaskSequenceID%
OSInstall=YES
DoNotCreateExtraPartition=YES
WUMU_ExcludeKB1=976002
WUMU_ExcludeKB2=2636927
WUMU_ExcludeKB3=982861
WUMU_ExcludeKB4=2694771
;---------Configuration des écrans ---------
SkipBDDWelcome=YES
KeyboardLocale=040C:0000040C
SkipTaskSequence=NO
SkipUserData=YES
DoNotFormatAndPartition=NO
SkipProductKey=YES
SkipLocaleSelection=YES
SkipTimeZone=YES
UILanguage=fr-FR
UserLocale=fr-FR
KeyboardLocale= 040C:0000040C
TimeZoneName=Romance Standard Time
TimeZone=105
SkipAdminPassword=YES
SkipSummary=YES
SkipFinalSummary=NO
SkipComputerBackup=YES
SkipBitLocker=YES
SkipPackageDisplay=YES
SkipRoles=YES
;---------Configuration par TaskSequenceID---------
[CAPT_001]
SkipComputerName=YES
OSDComputername=MASTER
SkipCapture=NO
DoCapture=YES
ComputerBackupLocation=\\***\deploymentshare\Captures
BackupFile=%TaskSequenceID%_#day(date) & "-" & month(date) & "-" & year(date)#.wim
SkipSummary=YES
SkipApplications=NO
SkipAppsOnUpgrade=NO
FinishAction=SHUTDOWN
[DEP_001]
SkipComputerName=NO
OSDComputername=%mySite%00000%myPCType%
SkipDomainMembership=YES
JoinDomain=***
DomainAdmin=***
DomainAdminDomain=***
DomainAdminPassword=***
SkipApplications=YES
SkipAppsOnUpgrade=YES
SkipCapture=YES
SkipSummary=YES
FinishAction=LOGOFF