Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Bulk DNS

$
0
0

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

Viewing all articles
Browse latest Browse all 6937

Trending Articles