Jump to content


  • 0
anyweb

how can I install drivers using windows SIM

Question

You can install device drivers during Windows Setup by creating an answer file using Windows SIM. In this answer file, you can specify the paths to device drivers on a network share (or a local path) by adding the Microsoft-Windows-PnpCustomizationsWinPE or Microsoft-Windows-PnpCustomizationNonWinPE components and specifying the configuration passes in which you intend to install them. You can install device drivers in the windowsPE, offlineServicing, auditUser or auditSystem configuration passes.

 

By adding device drivers during the windowsPE or offlineServicing configuration passes, you can add out-of-box device drivers to the Windows image before the computer starts. This method can also be used to add boot-critical device drivers to a Windows image. Digitally signed device drivers can be added to an offline Windows image before Windows Setup or during Windows Setup.

 

In our example here (local path) we are going to create a folder called drivers, that folder will have subfolders in it with our drivers neatly organised (audio/video/network/etc..) for easy management.

 

eg:

 

drivers/audio
drivers/video
drivers/network

 

and so on

 

Prepare the Answer file

 

Startup Windows SIM and in the Windows Image pane, expand components. Select the component called Microsoft-Windows-Setup and add it to Pass 1 WindowsPE if it isn't already added.

 

useconfigurationset.jpg

 

Set the UseConfigurationSet value to True using the drop down menu.

 

true.jpg

 

Back in the components pane, select the Microsoft-Windows-PnpCustomizationsWinPE/DriverPaths/PathAndCredentials node and right click, choose add setting to Pass 1 windowsPE.

 

addtowinpe.jpg

 

Set the Key value to 1 and edit the Path value to read as follows:-

 

%configsetroot%drivers\

 

setroot.jpg

 

Validate your answer file and save it as AutoUnattend.xml.

 

 

Prepare the USB Key

 

Format a USB key and copy the Autounattend.xml file to the root of the key, once done, copy the Drivers folder structure which you prepared earlier to the root of the key

 

usbkey.jpg

 

you are now ready to boot the client to test the unattended install.

 

 

Below is a sample of the drivers code in AutoUnattend.xml for 64bit Server 2008

 

<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UseConfigurationSet>true</UseConfigurationSet>
	</component>
	<component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
		<DriverPaths>
			<PathAndCredentials wcm:action="add" wcm:keyValue="1">
				<Path>%configsetroot%drivers\</Path>
			</PathAndCredentials>
		</DriverPaths>
	</component>

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

the spontaneous question is: What format should they be? what are the files need for example for Nvidia drivers? Let's say I want to update it to the latest version what should I do? I get the exe from the official site and what next? :blink:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.