Skip to content

Instantly share code, notes, and snippets.

View SweetAsNZ's full-sized avatar
🏠

Tim West SweetAsNZ

🏠
View GitHub Profile
@SweetAsNZ
SweetAsNZ / Create-PtrRecords.ps1
Created May 31, 2022 02:12 — forked from msoler8785/Create-PtrRecords.ps1
Quick PowerShell script to automate PTR Record creation for existing forward lookup zones.
# Creates PTR Records for all A Records in the specified -ZoneName.
# Uses a Class A Subnet for the reverse zone.
$computerName = 'dns-server01';
# Get all the DNS A Records.
$records = Get-DnsServerResourceRecord -ZoneName 'zone.example.com' -RRType A -ComputerName $computerName;
foreach ($record in $records)
{
# The reverse lookup domain name. This is the PTR Response.
$ptrDomain = $record.HostName + '.zone.example.com';
@SweetAsNZ
SweetAsNZ / Approve-WSUSLicenseAgreementAcceptance.ps1
Last active August 28, 2022 23:19 — forked from jhochwald/Approve-WSUSLicenseAgreementAcceptance.ps1
Accept License Agreements for all Windows Server Update Services (WSUS) Updates
#requires -Version 3.0 -Modules UpdateServices
<#
.SYNOPSIS
Accept License Agreements
.DESCRIPTION
Accept License Agreements for all Windows Server Update Services (WSUS) Updates
.PARAMETER Name
<#
.Synopsis
Gets information of a port number
.DESCRIPTION
Function provides detailed information of port numbers, like - the service which use the port, Transport protocol and a small decsription.
.EXAMPLE
PS > Get-Port -Port 20,21,53
Port Service Protocol Description
---- ------- -------- -----------
<#
.SYNOPSIS
Deploy Multiple VMs to vCenter
.DESCRIPTION
VMs are deployed asynchronously based on a pre-configured csv file (DeployVM.csv)
.PARAMETER csvfile
Path to DeployVM.csv file with new VM info