diff --git a/providers/activedir/domains.go b/providers/activedir/domains.go index 9fd076775..3e6ac1bed 100644 --- a/providers/activedir/domains.go +++ b/providers/activedir/domains.go @@ -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) }