Skip to content

Instantly share code, notes, and snippets.

View 8bitnz's full-sized avatar

Alex S 8bitnz

  • NZ
View GitHub Profile
@8bitnz
8bitnz / deployad.ps1
Last active June 14, 2022 22:06
Deploy AD PowerShell
Install-WindowsFeature AD-Domain-Services
$ForestConfig = @{
CreateDnsDelegation = $false
DatabasePath = 'C:\Windows\NTDS'
DomainMode = 'Win2012R2'
DomainName = 'yourdomain.com'
DomainNetbiosName = 'YOURDOMAIN'
ForestMode = 'Win2016'
InstallDns = $true
LogPath = 'C:\Windows\NTDS'
@8bitnz
8bitnz / vcarepfix.ps1
Created November 28, 2019 20:43
VMware vCloud Availability Replicator Fix
#Requires POSH-SSH
#Fix for replication bug 'Several days after upgrading to 3.0.3 or 3.0.4, the replications synchronization stops progressing'
#As detailed in release notes
#https://docs.vmware.com/en/VMware-vCloud-Availability/3.0.4/rn/VMware-vCloud-Availability-304-Release-Notes.html
$vca_replicators = @{
"rep01" = 'password'
"rep02" = 'password'
"rep03" = 'password'
"rep04" = 'password'
@8bitnz
8bitnz / gist:e32081881155e8d1bd5dc048e7d7432b
Created November 14, 2019 23:45
Nelson VMUG vcloud director example
# The provider is the system we are connecting to or managing. In this case
# the provider is 'vcd'. For the vcd provider, we need to provide the following.
# The vcd Provider supports both provider and tenants, in this instance we are assigning an Org,
# the credentials provided are local to that tenant
provider "vcd" {
user = "youruser"
password = "YourSecurePassword"
org = "ACME"
vdc = "VDC3"
@8bitnz
8bitnz / gist:e4bfe4ed0a875f23cf7f9b26acf78ece
Created November 9, 2019 04:54
Nelson VMUG vsphere example
# The provider is the system we are connecting to or managing. In this case
# the provider is 'vsphere'. For the vSphere provider, we need to provide the
# vCenter server and credentials to connect. In this example, we are using variables for this
provider "vsphere" {
user = var.vsphere_user
password = var.vsphere_password
vsphere_server = var.vsphere_server
# If you have a self-signed cert
@8bitnz
8bitnz / gist:5aefb71c572d3bf8f4da75490ad2a490
Created October 9, 2018 21:28
vCD Create vApp and VM resources fails to complete
# VMware vCloud Director Provider Variables (Blank)
variable "vcd_user" {
description = "vCD Tenant User"
}
variable "vcd_pass" {
description = "vCD Tenant Password"
}
variable "vcd_org" {
description = "vCD Tenant Org"
}