Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 662 Bytes

Examples.md

File metadata and controls

26 lines (17 loc) · 662 Bytes

Add-OPZoneRecord

To add a record to a single domain:

Get-OPZone "testdomain.com" -Provider sectigo | Add-OPZoneRecord -Type TXT -Value "v=SPF1"

Pipelining is great for processing batches, here is an example of adding the "v=SPF1" TXT record to all domains in OpenProvider:

Get-OPZone | Add-OPZoneRecord -Type TXT -Value "v=SPF1"

Get-OPZoneRecord

Get-OPDomain "testdomain.com" | Get-OPZoneRecord -Provider sectigo

Set-OpZoneRecord

Get-OPZoneRecord -Domain "testdomain.com" -Provider sectigo | Where-Object {$_.Value -eq "v=SPF1"} | Set-OPZoneRecord -Value "v=SPF1 -all"