Hi trying the following
$DNS=import-csv d:\test.csv
ForEach-Object{
Add-DnsServerResourceRecordA -name $dns.name -ZoneName test.root -ComputerName qatest IPv4Address $dns.ip
}
I get the error "Cannot convert value to type System.String."
yet when I try $dns.name | gm it says the typename is system.string
Can anyone explain why this is wrong, and how I can get it to work?
Thanks