mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Uncomment AD delete commands (#9)
* Actually run AD delete commands * keep whatif
This commit is contained in:
@ -276,7 +276,7 @@ func (c *adProvider) generatePowerShellModify(domainname, recName, recType, oldC
|
|||||||
func (c *adProvider) generatePowerShellDelete(domainname, recName, recType, content string) string {
|
func (c *adProvider) generatePowerShellDelete(domainname, recName, recType, content string) string {
|
||||||
text := fmt.Sprintf(`echo "DELETE %s %s %s"`, recType, recName, content)
|
text := fmt.Sprintf(`echo "DELETE %s %s %s"`, recType, recName, content)
|
||||||
text += "\r\n"
|
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"
|
text += "\r\n"
|
||||||
return fmt.Sprintf(text, c.adServer, domainname, recName, recType, content)
|
return fmt.Sprintf(text, c.adServer, domainname, recName, recType, content)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user