@IT-MAN I don’t follow what you mean?
"Other lines work without the three “pnputil.exe”?
First if the script is exactly as you have defined, then the issue is you don’t have the right information.
You script should look, per the tutorial:
REM INSTALLATION DES DRIVERS
pnputil.exe /add-driver “C:\Drivers\*.inf” /subdirs /install
pnputil.exe /add-driver “C:\Drivers\*.inf” /subdirs /install
pnputil.exe /add-driver “C:\Drivers\*.inf” /subdirs /install
shutdown -t 0 -r
@echo off
That is not what you ahve.
That said, what do you mean the script “runs undefinitely”? I’m guessing (and i realize semantics but just trying to clarify) you mean “indefinitely” but is that really the case?
Installing drivers can take quite some time, so it could be minutes, to hours - generally. So what is your basis of running indefinitely?
If it takes more than 6 hours, I might say you’re seeing things run very slowly.
Now the reason the script pathing is important.
C:\Drivers*.inf is looking for anything called “C:\Drivers<anythinghere>.inf”
Where:
C:\Drivers\<anythinghere>.inf is what I am confident you are meaning. You want to delve into drivers folder and anything that has .inf in there (recursively as necessary)
setupcomplete.cmd only runs after sysprep, so assuming your system is sysprepped, but you’re having to manually enter the options after you deploy the image, I don’t know.
You kind of left off all the details.