Uncomment AD delete commands (#9)

* Actually run AD delete commands

* keep whatif
This commit is contained in:
Craig Peterson 2016-09-28 14:05:13 -06:00 committed by GitHub
parent 162a4a2ee1
commit b32eb62ebe

View file

@ -276,7 +276,7 @@ func (c *adProvider) generatePowerShellModify(domainname, recName, recType, oldC
func (c *adProvider) generatePowerShellDelete(domainname, recName, recType, content string) string {
text := fmt.Sprintf(`echo "DELETE %s %s %s"`, recType, recName, content)
text += "\r\n"
text += `# Remove-DnsServerResourceRecord -Force -ComputerName "%s" -ZoneName "%s" -Name "%s" -RRType "%s" -RecordData "%s" -WhatIf`
text += `Remove-DnsServerResourceRecord -Whatif -Force -ComputerName "%s" -ZoneName "%s" -Name "%s" -RRType "%s" -RecordData "%s"`
text += "\r\n"
return fmt.Sprintf(text, c.adServer, domainname, recName, recType, content)
}