Listen to this Post
Step-by-Step Guide to Network-Based PC Imaging Using WDS and Hyper-V
1. Set Up Hyper-V:
- Install Hyper-V on your Windows Server using the following PowerShell command:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
- Create a virtual switch for network connectivity:
New-VMSwitch -Name "ExternalSwitch" -NetAdapterName "Ethernet" -AllowManagementOS $true
2. Install and Configure WDS (Windows Deployment Services):
- Add the WDS role via Server Manager or PowerShell:
Install-WindowsFeature -Name WDS -IncludeManagementTools
- Initialize WDS:
WDSUTIL /Initialize-Server /Server:YourServerName /RemInst:"C:\RemoteInstall"
3. Add Boot and Install Images to WDS:
- Mount the Windows ISO and add the boot image:
WDSUTIL /Add-Image /ImageFile:"D:\sources\boot.wim" /ImageType:Boot
- Add the install image:
WDSUTIL /Add-Image /ImageFile:"D:\sources\install.wim" /ImageType:Install
4. Configure DHCP for PXE Boot:
- Ensure DHCP options 66 and 67 are set for PXE boot:
Set-DhcpServerv4OptionValue -ScopeId 192.168.1.0 -OptionId 66 -Value "YourWDSServerIP" Set-DhcpServerv4OptionValue -ScopeId 192.168.1.0 -OptionId 67 -Value "boot\x64\wdsnbp.com"
5. Create and Capture a Reference Image:
- Deploy a VM using WDS, install the OS, and customize it.
- Capture the image using the following command:
WDSUTIL /Capture-Image /ImageFile:"C:\Images\Reference.wim" /CaptureDir:C:\ /Name:"ReferenceImage"
6. Deploy the Captured Image:
- Add the captured image to WDS and deploy it to target machines:
WDSUTIL /Add-Image /ImageFile:"C:\Images\Reference.wim" /ImageType:Install
What Undercode Say
Network-based PC imaging using WDS and Hyper-V is a powerful method for deploying standardized operating systems across multiple machines. This guide provides a comprehensive approach to setting up and configuring WDS and Hyper-V for efficient network-based imaging. By leveraging PowerShell commands, you can automate and streamline the process, ensuring consistency and reducing deployment time.
For advanced users, consider integrating MDT (Microsoft Deployment Toolkit) with WDS for additional customization options. Use commands like `New-PSDrive` to map network shares and `DISM` to modify Windows images directly. Additionally, explore Hyper-V PowerShell cmdlets such as `Get-VM` and `Start-VM` to manage virtual machines programmatically.
For further reading, refer to the official Microsoft documentation on WDS and Hyper-V:
– Windows Deployment Services
– Hyper-V on Windows Server
By mastering these tools and commands, IT professionals can significantly enhance their deployment workflows, ensuring robust and scalable solutions for enterprise environments.
References:
initially reported by: https://www.linkedin.com/posts/shiva-lamichhane-11aa22348_pc-imaging-in-hyper-v-ugcPost-7301609100696547328-jkRy – Hackers Feeds
Extra Hub:
Undercode AI


