Help with Win10 Driver injection
-
@kyle.heath I have a folder with network drivers on all my images and that works fine. I just put all of them there from the universal driverpacks.
Cool thing is, you don’t need to specify windows to install those drivers, it does so by itself.
-
@MRCUR I tested this by changing the values of those to false and it still didn’t install all the drivers. It installed a couple, but I’m missing
I’m going to try dpinst.exe to see if that works.
-
@Quazz So right now I have a folder on my FOG server that pushes out a folder called Drivers onto my machines. If I push out a folder called INF into windows instead of Drivers that should push them into the correct area for Microsoft installation. It’s installing some of my drivers but not all. SMBus and some USB drivers don’t install.
-
@kyle.heath Its installing the same number of drivers as when you place them in c:\windows\drivers?
If that is the case you need to check the drivers to see if they are unpacked.
I do have to ask the question where did you get all of these drivers from? Were they on the Dell Deployment CAB for your hardware model or did you download them individually from the Dell site.?
Also note as a Moderator I’m going to fork this section of the thread since its a bit off topic of the original tutorial. I’ll clean it up after the issue has been resolved or come to an end.
-
@george1421 It’s not installing the same number because when i point the missing drivers to the C:\Windows\Drivers folder it installs them. I got them from the Dell website and they were on the Dell Deployment CAB. It installs certain ones like the networks ones, but SMBUS and USB ones it does not.
-
@kyle.heath In Windows 7, some drivers for newer devices must be installed after drivers for older devices are installed with a reboot in between and vice versa.
And as @Quazz said, you can quite simply dump your entire library of drivers into ‘c:\windows\inf’, but you will still be limited by Windows 7’s ability, or inability to prioritize driver installation order.
-
I Need some Help with this Scipts.
I have HP and Lenovo Machines, and i want to test the Driver Injection with a Lenovo ThinkPad L560.I dont know if i had all made all required settings, my Drivers dont copied to the Client.
I have placed the fog.drivers, fog.log and fog.postdownload into /images/postdownloadscripts and set the Files to 755.
And i have create da drivers Folder into /images with Rights set to 755.Under drivers there is a Folder named to the result from “dmidecode -s system-product-name” and the other needet Folders under it.
Looks like this:
/images/drivers/20F10026GE/win10/x64Under x64 i put all 64Bit Drivers from a SCCM Package for the ThinkPad L560.
But i think the FOG dont start the Scripts unter /images/postdownloadscripts.
The Folder C:\Windows\DRV was not created and no Drivers copied.Do i have any settings to make so FOG run the Scrips under /images/postdownloadscripts?
Please can someone help me?
-
@MotD What does your fog.postdownload and fog.drivers look like?
Any error messages?
-
@THEMCV I have taken the Files and Folder Structure from this Thread and dont change anything.
https://forums.fogproject.org/topic/8889/fog-post-install-script-for-win-driver-injection/2Where can i see a Log File or else?
The Messages on the Client System runs too fast to read it. -
@MotD Check out this thread and make sure you’ve got the updated ones. This is what I’m using.
-
@THEMCV Many Thanks to you, i’ll read it now and then i try it
-
@THEMCV Now i have another Question, i try to run the fog.postdownload script in Terminal.
And get a Error because i there is no Folder called “/usr/share/fog” with the called funcs.sh Script. The Folder is completly missing.I have FOG 1.3.3 installed on a Ubuntu 14.04 LTS.
Where i get the needed Files? -
@MotD You shouldn’t run it, it should go in /images/postdownloadscripts. The error I’m not sure about.
in /images/postdownloadscripts do you have fog.postdownload and fog.drivers in there from the thread?
-
-
-
@MotD In /images/postdownloadscripts you should have the master FOG hook script called fog.postdownload that should be configured to call your fog.drivers bash shell script. That script is what should move your files.
Also FWIW the Lenovo’s hide their system name in a different place than the Dells in SMBIOS.
You may need to make a elaborate structure to pull the machine name from the Lenovo systems and the Dells if you random deploy to each.
Something like:
sysmanufact=$(dmidecode -s system-manufacturer | tr -cd '\40\60-\176') sysmanufact="${sysmanufact%"${sysmanufact##*[![:space:]]}"}" if [[ -z ${systemanufact} ]]; then #system manufacturer is blank so try to pick up name from baseboard # / motherboard value sysmanufact=$(dmidecode -s baseboard-manufacturer) sysmanufact="${sysmanufact%"${sysmanufact##*[![:space:]]}"}" fi case ${sysmanufact} in *[Dd][Ee][Ll][Ll]*) machine=$(dmidecode -s system-product-name) ;; *) # Do this for all other machines i.e. Intel and Lenovo machine=$(dmidecode -s baseboard-product-name) ;; esac
To get the proper value into the machine variable.
-
@george1421 Ok, thanks i dont know that.
Sorry i am new on FOG Project and Linux.
I take all Scripts from your Post, and do not make any changes but the Drivers dont copied to the Client.Can i see a Log File about the Image Deploy and the result of the running from the fog.postdownload and fog.drivers Scripts?
i run a Windows Version of dmidecode called dmidecode212 under the Windows Maschine and get the Result: 20F10026GE from the Lenovo ThinkPad L560. and i create the Folder Structure /images/drivers/20F10026GE/win10/x64
Under x64 i put all 64Bit Drivers from a SCCM Package for the ThinkPad L560
-
@MotD There is no log file for these scripts. If you took things just as I have defined, that is for Dell hardware. That should work as I have them listed. For Lenovo you will have to make some changes to the scripts.
-
@MotD I’m going to fork this discussion into a new thread since your issue is new and I don’t want to fill up this thread with a new issue.
We really need you to setup a debug deploy to this lenovo. The numbers you have look correct for what I remember of the Lenovo systems. So you may be spot on.
So schedule a image deploy to this computer but before you press OK, select the Debug check box. Then pxe boot the target computer. After a few enter key presses you should be dropped to the FOS engine command prompt. From there I want you to key in this command.
dmidecode -s baseboard-product-name
-
@george1421 Ok, i made it this way you say.
The result is: 20F10026GEThe same result from the Way with dmidecode212 under Windows:
dmidecode212 -s baseboard-product-name
result: 20F10026GE