본문 바로가기

카테고리 없음

Adding Drivers To Winpe 4.0



  1. How To Add Drivers To Winpe

Adding device drivers to Windows PE. Skip to end of metadata. Is packaged with a large collection of drivers but there are many devices that are not part of the WinPE list of drivers. If your device is not listed you must add its driver so WinPE recognizes it and communicates with your device. When you run the Macrium Reflect task. WinPE – loading drivers to a live instance. If you just loaded a network driver, run “wpeutil initializeNetwork”. This procedure allowed me to get an OS deployment done now, rather then spending hours loading drivers into our MS Deployment Workbench, rebuilding media, and testing, testing, testing. Greg MacKinnon. WinPE 4.0 is the version of WinPE that is shipped with Windows 8. Cause The running operating system (WinPE 4.0 or a later version) lacks the logic necessary to determine which version of drvstore.dll is required to service drivers on down-level operating systems.

Hi Ericgl, thanks for all the effort you put in to share you knwledge on the building of WINPE4. Unfortuantely I got to step 13 without issues but at that point is where I got completely lost. I downloaded the drivers which happen to be much older that the ones I had on my Windows 7 notebook so Haven't applied then yet. In step

17. ATTENTION: We are now going to commit our changes and unmount the WIM file. Close ALL explorer.exe processes, or the unmount process will give you an error!!
Type the following command:

This process takes a while (a minute or so), so let it finish without interruption. When this process is finished, the C:MOUNT folder will be empty.

but as Explorer is Windows nothing works once I closed the explorer.exe process.

This seems a very long winded and cumbersome way to build a boot disk so I wonder if there is an easier way as I just need one so I can boot my Windows 7 64bit O/S so and can do a complete image restore of drive C:?


Deploying Windows with the help of a Windows Preinstallation Environment (WinPE) is known since the release of Windows XP. We always take care of adding network drivers to WinPE to support our various models in the environment. The standard WinPE provided by the Windows Assessment and Deployment Kit (Windows ADK) does not have any support for wireless network. Even the latest (at the time of writing) WinPE version 1709 (10.0.16299) does not provide native wireless support. If we look at the Windows Recovery Environment (WinRE) you can find an additional optional component that provides WiFi support for the WinRE. This is easily verified by mounting the WinRE with dism and listing the features:

The output should list all available features and the additional WinPE-WiFi feature only provided in WinRE:

All we need to do is to replace our WinPE with a WinRE and some additional modifications to get wireless support in our new WinPE. The modifications are basically:

  • adding wireless drivers to the PE if needed (I used a Surface devices which has wireless driver support out of the box)
  • removing or modifying winpeshl.ini as it tries to load the recovery environment of the WinRE
  • adding back some dependency dlls otherwise the support is broken for WinPE version later than 1511
  • creating a wireless xml profile
  • assigning and connecting to the wireless network via netsh
  • a good strategy how to use the new wireless support with MDT and ConfigMgr 🙂

Building a test WinPE with wireless support

  • Create a folder C:mount and a sub folder offline
  • copy WinRE from the Windows folder to the new mount folder (assuming the running OS on which the new WinPE is created is Windows 10 1709)
  • Mount the WinRE to C:mountoffline
  • Copy missing libraries (dlls) to WinRE

    Without the additional dlls you will get the following error when using netsh in the wlan context (netsh wlan): The following helper DLL cannot be loaded: WLANCFG.DLL. I troubleshoot this with the help of the Dependency Walker (depends.exe). I loaded wlancfg.dll with depends.exe within the WinPE environment and observed mdmregistration.dll listed as “Error opening file. Adobe livecycle designer es4 software development. The system cannot find the file specified“. Loading mdmregistration.dll then and found the second layer dependency dmcmnutils.dll with the same error. I added them to the WinRE and the initial error for wlancfg.dll was solved. After a manual connect via netsh the wlan context was working. All this is needed for WinRE versions 1607 and later. With a WinRE version 1511 it is working without the two dlls.

  • Create the wireless xml profile Wi-Fi-YourNetwork.xml by exporting your Wi-Fi with netsh wlan export

    Note that the described WinPE setup does support shared key authentication with OpenWEPWPA and WPA2. The command above will export the shared key as plain text within the xml file!

  • Create a batch file wlan.cmd to start the WLAN AutoConfig Service and use netsh to add a wireless profile to the wlan interface and finally connect to the wireless network

    The timeout of 30 seconds (build with the ping command) is needed to make sure the script pauses some time to let the wireless network stack connect to the wireless network. My tests have shown between 30-45 seconds are needed to successfully connect, get an IP address, and to have a valid connection in the end.

  • Remove the winpeshl.ini file as it has an entry to load the recovery environment
  • Un-mount the WinRE file to get our newly created WinPE with wireless support

Please note the downside of this approach is the plaintext shared key in the Wi-Fi-YourNetwork.xml file.

Now we have a tow basic options what to do with the new test WinPE. Here some ideas:

  1. use it with MDT
    rename the existing winpe.wim template in the path:

    and copy the newly created one as winpe.wim there. Now we can build a MDT solution with our new WinPE. As soon as the WinPE is loaded we can test wireless by hitting F8 and type wlan.cmd. Java home path catia v6.

  2. use it with ConfigMgr
    I didn’t test yet but as we need the support for the wireless network very early in the process, I assume we need to hook something into TsBootShell.ini, and let the system connect to the wireless before starting the actual task sequence.

User driven experience with wireless connect

I built a solution with MDT which does not use the Wi-Fi-YourNetwork.xml file which has the plain text key material. The solution is a simple .NET 4.5 program to simplify the connection to a wireless network. Remember to add .NET framework support to the WinPE. The tool will create the xml file with the correct parameters provided by the UI and connects to the wireless network. It will make active probes to the Microsoft Network Connection Status Indicator (NCSI) to verify if there is an internet connection. This can be easily overwritten by providing a parameter during startup of the tool via:

To support the keyboard button we must add the osk.exe and osksupport.dll to the execution directory of WirelessConnect. The .NET solution WirelessConnect can be found on my GitHub Helper repository here:
https://github.com/okieselbach/Helpers

Here you can download dj shadow quannum spectrum shared files that we have found in our database. Just click desired file title and download link will show up! Dj shadow quannum spectrum.rar. Here you can download dj shadow funk spectrum real funk for real people rar shared files: 1999 DJ Shadow Quannum spectrum.rar from mediafire.com 76.36 MB, 1999 dj shadow quannum spectrum rar from mediafire.com (76 MB), Dj shadow quannam spectrum zip from mediafire.com (77 MB), DJ Rectangle - Casino Royale Vol.2 (For The Gangsters).rar from mediafire.com 88.62 MB. Free download VA - Quannum Spectrum (CD) (1999) (FLAC + 320 kbps) rar. Free download VA - Quannum Spectrum (CD) (1999) (FLAC + 320 kbps) rar. Google + Subscribe. Enter your email address: Delivered by FeedBurner. 01 Quannum MC’s Meet Jurassic 5 – Concentration 02 Blackalicious – One Of A Kind. Quannum Spectrum (1999) 8 torrent download locations monova.org Quannum - Quannum Spectrum (1999) Mo Wax [MWR 110 CD] Music 2 hours seedpeer.eu Quannum - Quannum Spectrum (1999) Mo Wax [MWR 110 CD] Music Misc 10 hours torrentdownloads.me Quannum Quannum Spectrum (1999) Mo Wax [MWR 110 CD] Hip Hop 1 month torrentfunk2.com Quannum Spectrum (1999. Dj shadow quannum spectrum. Download dj shadow quannum spectrum free shared files from DownloadJoy and other world's most popular shared hosts. Our filtering technology ensures that only latest dj shadow quannum spectrum.

After download we can create a MDT bootable USB device with wireless support and easy connection handling with WirelessConnect.exe. We provide the WirelessConnect.exe and the unattend.xml file for the WinPE as an extra file in MDT to start the WirelessConnect.exe before we run the MDT LiteTouch process.

Winpe

Unattend.xml

When using MDT we can also easily provide mdmregistration.dll and dmcmnutils.dll in a sub folder WindowsSystem within the extra directory to add. The MDT process will only need a modified WinRE to have nowinpeshl.ini file and then MDT builds the complete WinPE for us.

The ExtraFiles folder should look like this:

  • WirelessConnect.exe
  • unattend.xml
  • WindowsSystem32mdmregistration.dll
  • WindowsSystem32dmcmnutils.dll
  • osk.exe
  • osksupport.dll
Winpe

Adding an extra directory to MDT is a simple task:

As last step I needed to modify ZTIUtility.vbs to support a deployment via wireless network:

If everything was successful you will see the WirelessConnect UI from above and you are able to connect to your wireless network protected by WPA/WPA2/WEP or as an Open network before the task sequence will start.

Additional considerations need to be made when dealing with reboots during WinPE phase to ensure proper reconnect and during OS phase. Basically I wanted to show the possibility to provide wireless support, even when not used with OSD it might help in other scenarios.

(12415)

Oliver started as a System Engineer and is now a Lead Cloud Architect and has been working in the IT industry for the past 15+ years specializing in Enterprise Mobility and Security, Deployment and Automation. Oliver has been awarded Enterprise Mobility MVP in August 2018. Currently working for Glück & Kanja Consulting AG and is engaged in enterprise projects with up to 100k endpoints. Most recent focus has been on Modern Management projects, helping customers to solve actual challenges there. In 2017, Oliver has founded https://oliverkieselbach.com blog and is blogging on SCConfigMgr.

How To Add Drivers To Winpe

Related