What is wrong with this command?
Set-DnsServerResourceRecord -ZoneName "xxyzz.com" -Name "Testrecord" -A -IPv4Address "175.18.13.23"
Error below
Set-DnsServerResourceRecord : A parameter cannot be found that matches parameter name 'Name'. At line:1 char:56 + Set-DnsServerResourceRecord -ZoneName "xxyzz.com" -Name "Testrec ...+ ~~~~~+ CategoryInfo : InvalidArgument: (:) [Set-DnsServerResourceRecord], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Set-DnsServerResourceRecord
I was able to find the right PowerShell command myself - For people who may need this
### Start Variables ###
$DNSName = "Testrecord"
$DNSZoneName = "YourDomain.com"
$IPAddress = "175.18.13.23"
### End Variables ###
$oldobj = get-dnsserverresourcerecord -name $DNSName -zonename $DNSZoneName -rrtype "A"
$newobj = get-dnsserverresourcerecord -name $DNSName -zonename $DNSZoneName -rrtype "A"
$newobj.recorddata.ipv4address=[System.Net.IPAddress]::parse($IPAddress)
Set-dnsserverresourcerecord -newinputobject $newobj -oldinputobject $oldobj -zonename $DNSZoneName -passthru