In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Foreword:
The initial winpe has been created in "making your own Winpe image (1): Windows ADK installation and initial PE generation", and we need to add some tools and drivers to this WinPE. 1. Mount the Boot.wim image file
Use the "copype" tool in the deployment and Image tool Environment to copy the WindowsPE file to the "d:\ winpe_amd64" directory, and the Boot.wim image is located in the "d:\ winpe_amd64\ Media\ sources" directory.
With the help of the "DISM.exe" tool to mount the "Boot.wim" image file, the command is as follows:
Dism / mount-wim / wimfile:d:\ winpe_amd64\ Media\ sources\ boot.wim / index:1 / mountdir:D:\ winpe_amd64\ mount Note: Mount the boot.wim file to the "D:\ winpe_amd64\ mount" directory. 2. Load driver
With the help of the DISM tool, drivers in the ".inf" format can be injected.
2.1 View driver
Dism / p_w_picpath:D:\ winpe_amd64\ mount / get-drivers
2.2 add driver package
Dism / p_w_picpath:D:\ winpe_amd64\ mount / add-driver / driver:D:\ driver\ * .inf / forceunsigned
Note: "/ driver:" followed by a single inf file, load a single driver. If you do not specify a file, dism will detect all inf files in the directory for installation, but add the "/ recurse" parameter after it.
Dism / p_w_picpath:D:\ winpe_amd64\ mount / add-driver / driver:D:\ driver\ / forceunsigned / recurse
Note: the "/ forceunsigned" parameter forces the signature of the installed driver not to be verified.
2.3 remove driver
Sometimes, we no longer need the added driver, so we need to uninstall the driver and use the "/ remove-driver" parameter, but we need to use the "Published" of the driver to delete the driver.
Name ", which can be viewed with the query-driven command" / get-drivers ".
Dism / p_w_picpath:D:\ winpe_amd64\ mount / remove-driver / driver:D:\ driver\ oem0.inf3, install CAB packages use the DISM tool to add packages in CAB format.
3.1 View the installed CAB package
Dism / p_w_picpath:D:\ winpe_amd64\ mount / get-packages
3.2 load the CAB package to Windows PE
Dism / p_w_picpath:D:\ winpe_amd64\ mount / add-package / packagepath:D:\ cab\ WinPE-Scripting_zh-cn.cab
Note: after Windows ADK has installed "Windows preinstallation Environment (Windows PE)", there will be some CAB packages that we can use in "D:\ Program Files (x86)\ Windows Kits\ 10\ Assessment and Deployment Kit\ Windows Preinstallation Environment\ amd64\ WinPE_OCs", and you can load the corresponding CAB packages into Windows PE yourself.
To add multiple CAB packages, the command uses the same as the load driver, specifying the corresponding directory when specifying the CAB package path.
Dism / p_w_picpath:D:\ winpe_amd64\ mount / add-package / packagepath:D:\ cab\ amd64\ WinPE_OCs\ zh-cn\ 4, add other tools
Manually add p_w_picpathx tools to Windows PE
Copy "p_w_picpathx.exe" from the "D:\ Program Files (x86)\ Windows Kits\ 10\ Assessment and Deployment Kit\ Deployment Tools\ arm64\ DISM" directory to the "\ Windows\ System32\" directory where the WIM file is mounted. 5. Commit changes to the WIM file (uninstall the WIM file and save the changes)
Uninstall the Wim image using the "/ unmount-wim" parameter of the "dism" command, add the "/ commit" parameter to save the changes, and "/ discard" discard the changes.
Dism / unmount-wim / mountdir:d:\ winpe_amd64\ mount / commit
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.