70-740, Teil 1.3.5. Images mit Patches, Hotfixes und Treibern aktualisieren

70-740, Teil 1.3.5. Images mit Patches, Hotfixes und Treibern aktualisieren

Ideen für die Recherche im Web:

technet dism

technet get-windowsimage

Zum Nachschlagen:

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-image-management-command-line-options-s14

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism—deployment-image-servicing-and-management-technical-reference-for-windows

https://docs.microsoft.com/en-us/powershell/module/dism/get-windowsimage?view=win10-ps

Übungen:

#Beispiel 1 Dism

#https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-image-management-command-line-options-s14

#https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism—deployment-image-servicing-and-management-technical-reference-for-windows

dir c:\isos

Copy-Item D:\sources\install.wim C:\isos\install.wim

Dism.exe /get-wiminfo /wimfile:c:\isos\install.wim

dir c:\mount

mkdir c:\mount

Dism.exe /mount-image /imagefile:c:\isos\install.wim /index:2 /mountdir:c:\mount

mkdir c:\drivers

Dism.exe /image:c:\mount /Get-Driver /driver:c:\drivers\ /recurse

Dism.exe /image:c:\mount /Add-Driver /driver:c:\drivers\ /recurse

Dism.exe /image:c:\mount /Get-Driver /driver:c:\drivers\ /recurse

mkdir c:\updates

Dism.exe /image:c:\mount /Get-Packages

Dism.exe /image:c:\mount /Add-Package /PackagePath:“c:\updates\*“

Dism.exe /image:c:\mount /Get-Features | ft | Select-String „Hyper-V“

Dism.exe /image:c:\mount /Get-FeatureInfo:Microsoft-Hyper-V Dism.exe /image:c:\mount /Enable-Feature /all /FeatureName:Microsoft-Hyper-V

#/Source:d:\sources\sxs Dism.exe /Unmount-Wim /MountDir:c:\mount /commit # neue .iso Datei erstellen siehe Link

#https://gallery.technet.microsoft.com/scriptcenter/New-ISOFile-function-a8deeffd

###

#Beispiel 2 Powershell

#https://docs.microsoft.com/en-us/powershell/module/dism/get-windowsimage?view=win10-ps

Get-WindowsImage -Mounted

Get-WindowsImage -ImagePath „c:\isos\install.wim“

Get-WindowsDriver -Online -All

Get-WindowsDriver -Path „c:\mount“ -all

Get-WindowsFeature -source C:\isos\install.wim:4

Install-WindowsFeature -Source C:\isos\install.wim

Get-WindowsPackage -Path „c:\mount“