DISM is a command line tool that applies updates, drivers, and language packs to a Windows image.
Here is an example of how to add Off-line drivers and Windows Update packages on a .wim File, on windows 7
a) We have a wim file on for example c:\install.wim
b) We Have a c:\secupdate folder with Windows6.1-KB979309-x86.msu update file
c We Have a c:\intel folder with intel drivers
d) We need to mount the install.wim on c:\123
e) Then we can add with dism.exe command Intel drivers and Windows Update file on the mounted wim file
1) Mount c:\install.wim
dism /mount-wim /wimfile:c:\install.wim /index:1 /mountdir:c:\123
2) Display Drivers
dism /image:c:\123 /get-drivers /all
3) AddDriver from C:\intel\WIN7\IntelCP2.inf
dism /image:c:\123 /add-driver:C:\intel\WIN7\IntelCP2.inf
4) To Add multiple drivers from the same folder
dism /image:c:\123 /add-driver /driver:c:\intel\win7
5) to Get information about application patches to a mounted image do the following
1st. dism /image:c:\123 /get-apps (for Applications)
2nd. dism /image:c:\123 /get-apppatches (For Application Patches)
6) to compare an online images (running operating system) with an offline-mounted images
a. dism /online /get-packages > c:\onlinepackages.txt
b. dism /image:c:\123 /get-packages > c:\offlinepackages.txt
This enables you to compare this 2 lists...
7) To install Windows6.1-KB979309-x86.msu update date for windows 7
dism /image:c:\123 /add-package /packagepath:c:\secupdate\Windows6.1-KB979309-x86.msu
8) When you finished you can apply all the changes and to unmount the image.
dism /Unmount-Wim /MountDir:c:\123 /commit
If you don’t want to apply the changes, you can use the /discard parameter instead of /commit.
9)If you want to check the windows update package which you install before you need to mount again the install.wim file and then run again
dism /image:c:\123 /get-packages (for windows Update packages)
Here is an example of how to add Off-line drivers and Windows Update packages on a .wim File, on windows 7
a) We have a wim file on for example c:\install.wim
b) We Have a c:\secupdate folder with Windows6.1-KB979309-x86.msu update file
c We Have a c:\intel folder with intel drivers
d) We need to mount the install.wim on c:\123
e) Then we can add with dism.exe command Intel drivers and Windows Update file on the mounted wim file
1) Mount c:\install.wim
dism /mount-wim /wimfile:c:\install.wim /index:1 /mountdir:c:\123
2) Display Drivers
dism /image:c:\123 /get-drivers /all
3) AddDriver from C:\intel\WIN7\IntelCP2.inf
dism /image:c:\123 /add-driver:C:\intel\WIN7\IntelCP2.inf
4) To Add multiple drivers from the same folder
dism /image:c:\123 /add-driver /driver:c:\intel\win7
5) to Get information about application patches to a mounted image do the following
1st. dism /image:c:\123 /get-apps (for Applications)
2nd. dism /image:c:\123 /get-apppatches (For Application Patches)
6) to compare an online images (running operating system) with an offline-mounted images
a. dism /online /get-packages > c:\onlinepackages.txt
b. dism /image:c:\123 /get-packages > c:\offlinepackages.txt
This enables you to compare this 2 lists...
7) To install Windows6.1-KB979309-x86.msu update date for windows 7
dism /image:c:\123 /add-package /packagepath:c:\secupdate\Windows6.1-KB979309-x86.msu
8) When you finished you can apply all the changes and to unmount the image.
dism /Unmount-Wim /MountDir:c:\123 /commit
If you don’t want to apply the changes, you can use the /discard parameter instead of /commit.
9)If you want to check the windows update package which you install before you need to mount again the install.wim file and then run again
dism /image:c:\123 /get-packages (for windows Update packages)
Δεν υπάρχουν σχόλια:
Δημοσίευση σχολίου