mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-30 19:41:13 +08:00
Uncomment AD delete commands (#9)
* Actually run AD delete commands * keep whatif
This commit is contained in:
parent
162a4a2ee1
commit
b32eb62ebe
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue