70-740, Teil 1.3.6. Rollen und Funktionen in Offline-Images installieren

70-740, Teil 1.3.6. Rollen und Funktionen in Offline-Images installieren

Ideen für die Recherche im Web:

Zum Nachschlagen:

Übungen:

#Beispiel 1

dism /? #Get-Command *WindowsImage*

dism /get-imageinfo /imagefile:C:\ISOs\install.wim #Get-WindowsImage

dism /imagefile:C:\ISOs\install.wim /List-Image #Get-WindowsImageContent

dism /imagefile:C:\ISOs\install.wim /Remove-Image #Remove-WindowsImage

mkdir c:\mount #New-Item -Path c:\Bereitstellung -ItemType Directory

dir c:\m* #Get-Item -Path c:\mount

ls c:\m* #Get-Item -Path c:\mount

dism /mount-image /imagefile:C:\ISOs\install.wim /index:4 /mountdir:c:\mount #Mount-WindowsImage

ls c:\mount #Get-Item -Path c:\mount

Dism.exe /image:c:\mount /Get-Features #Get-WindowsOptionalFeature

dism /image:c:\mount /get-drivers #Get-WindowsDriver

dism /image:c:\mount /get-packages #Get-WindowsPackage

dism /unmount-image /mountdir:c:\mount /discard #Dismount-WindowsImage

###

#Beispiel 2

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

dir c:\mount

mkdir c:\mount

dir c:\mount

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

dir c:\mount

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

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

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

Dism.exe /image:c:\mount /Enable-Feature /all /FeatureName:DNS

Dism.exe /Unmount-Wim /MountDir:c:\mount /commit