Skip to content

Instantly share code, notes, and snippets.

@stephenmbell
stephenmbell / New-OPSWindowsServer.ps1
Last active August 3, 2022 20:21
script to pre-stage AD server and add to required groups
[CmdletBinding()]
param (
[Parameter(Mandatory)]
[string]
$ComputerName,
# Parameter help description
[Parameter()]
[string]
$OUPath = 'OU=Windows,OU=Servers,DC=mydomain,DC=local',