$Subnets = Get-Content "C:\Temp\subnets.txt" foreach ($subnet in $subnets) { write-host "Subnet: $subnet" Add-DnsServerPrimaryZone -DynamicUpdate Secure -NetworkId "$subnet" -ReplicationScope Domain }
$Subnets = Get-Content "C:\Temp\subnets.txt" foreach ($subnet in $subnets) { write-host "Subnet: $subnet" Add-DnsServerPrimaryZone -DynamicUpdate Secure -NetworkId "$subnet" -ReplicationScope Domain }