I recently discovered that it is possible to simply automate DNS entry administration with a nice cmdlet:
Import-Module DnsServer
Add-DnsServerResourceRecordA -Name mail2 -IPv4Address 192.168.0.10 -ZoneName powershell.local
I'd like to run this one on a Windows 2008 R2 machine (it's called in a web service) to change a DNS entry on another one. I saw that Powershell v3 already supports this, but I couldn't get it to work on Powershell v4 either, apparently the module cannot be imported. Is this because I tested it on a Windows 7 machine? I have a Windows 7 development machine on which I'd like to develop and to debug it. Is it possible that I have to reload this module somehow? If yes, how can I do this?
I saw on the MS page that it is supported on Windows Server 2012, but I have no Win2012 system to test it on to confirm and switching the productive servers 2012 is currently not possible.
Thanks a lot in advance