<#Import csv in the following format Hostname,ClientID,IPAddress TEN-PC01,70:B3:D5:A7:71:01,10.1.1.150 TEN-PC02,70:B3:D5:A7:71:02,10.1.1.151 #> $impCSV = Import-Csv -Path D:\BulkImport\PC-List-IP.csv -Delimiter ',' #IP of DHCP Scope $Scope = "10.1.1.0" #Scope ID $GetScope = Get-DhcpServerv4Scope -ScopeId $Scope #Boot Image path for WDS $boot = "boot\x64\bootmgfw.efi" Foreach ($imp in $impCSV) { #Hostname $hn = $imp.hostname #MAC Address $mac = $imp.ClientID.replace(":","") #IP Address of client $ip = $imp.IPAddress #Add clients to DCHP Reservations Add-DhcpServerv4Reservation -scopeID $Scope -Name $hn -IPAddress $ip -ClientId $mac #Add clients to WDS Pre-staged New-WdsClient -DeviceName $hn -DeviceID $mac -BootImagePath $boot }