I have a text file with server name and IP address on the same line:
Then use $list var ex:
$list = get-content C:\temp\test-ps.txt
I’d like to feed the server name and IP into the Add-DnsServerResourceRecordA command ex:
Add-DnsServerResourceRecordA -name SERVER1 -ipv4address 10.1.1.1 -zonename “symbotic.corp” -AllowUpdateAny -CreatePtr -WhatIf
What is the best way to accomplish this?