Create Manage and Maintain Images - Paiet/Tech-Journal-for-Everything GitHub Wiki

Create Manage and Maintain Images

[ ]Plan for Windows Server virtualization Convert physical drives to virtual drives with below link or third party tool such as Veeam. https://docs.microsoft.com/en-us/previous-versions/technet-magazine/ff458344(v=msdn.10) [ ]assess virtualization workloads using the Microsoft Assessment and Planning (MAP) Toolkit https://www.microsoft.com/en-us/download/details.aspx?id=7826 [ ]determine considerations for deploying workloads into virtualized environments

Create Manage and Maintain Images Pt 2

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/use-dism-in-windows-powershell-s14 Objectives:

  • Update images with patches, hotfixes, last cumulative updates and drivers
  • Install roles and features in offline images
  • Manage and maintain Windows Server Core, Nano Server images, and VHDs using Windows PowerShell Deployment Tools such as: Windows Deployment Services (WDS) Microsoft Deployment Toolkit (MDT) System Center Configuration Manager (SCCM) https://www.catalog.update.microsoft.com/Home.aspx Lab: Mount install .ISO Sources Folder install.wim boot.wim (Windows PE) Get-Module Get-Command -Module Dism Get-WindowsImage -ImagePath E:\install.wim Remove-WindowsImage -ImagePath E:\install.wim -Index 1

(KB3199209)

Create Manage and Maintain Images Pt 3

mkdir E:\Temp Mount-WindowsImage -ImagePath E:\install.wim -Index 1 -Path E:\Temp

Add Patches, hotfixes, last cumulative updates & drivers

Add-WindowsPackage -Path E:\Temp -PackagePath E:\Updates Add-WindowsDriver -Path E:\Temp -Driver E:\Drivers -Recurse #Install roles and features in offline images Get-WindowsOptionalFeature -Path E:\Temp Get-WindowsOptionalFeature -Path E:\Temp | where FeatureName -Like Print Enable-WindowsOptionalFeature -Path E:\Temp -FeatureName Printing-Server-Foundation-Features Dismount-WindowsImage -Path E:\Temp -Save

Edit-NanoServerImage https://docs.microsoft.com/en-us/powershell/module/nanoserverimagegenerator/edit-nanoserverimage?view=win10-ps third party tools/scripts https://github.com/BladeFireLight/WindowsImageTools