Skip to content

Instantly share code, notes, and snippets.

@alan-finn
alan-finn / AwsDnsBackup.ps1
Last active May 2, 2019 20:33
Powershell wrapper for the cli53 utility to backup Route53 zones.
if ($null -eq (Get-Module -Name AWSPowerShell)) {
Import-Module AWSPowerShell
}
$AwsDnsBucketName = "NAME_OF_AWS_BUCKET"
$AwsCredProfileName = "NAME_OF_AWS_PROFILE"
$SmtpServer = "SMTP_SERVER"
$FromAddress = "FROM_ADDRESS"
$ToAddress = "RECIPIENT_ADRESS"
@alan-finn
alan-finn / DHCPUtility.ps1
Last active April 5, 2019 16:41
Menu wrapper for a few DHCP cmdlets
function Import-RemoteDhcpServerModule {
param (
$server
)
$Error.Clear()
Write-Output "`nCreating remote session to $server..."
try {