Configurations/Archive/Deprecated-POC-DCDHCPADCS-Client-Servers-GUI/mj.psd1
<# Notes:
Authors: Jason Helmick and Melissa (Missy) Janusko The bulk of this DC, DHCP, ADCS config is authored by Melissa (Missy) Januszko. Currently on her public DSC hub located here: https://github.com/majst32/DSC_public.git Goal - Create a Domain Controller, Populute with OU's Groups and Users. One Server joined to the new domain One Windows 10 CLient joined to the new domain Disclaimer This example code is provided without copyright and AS IS. It is free for you to use and modify. Note: These demos should not be run as a script. These are the commands that I use in the demonstrations and would need to be modified for your environment. #> @{ AllNodes = @( @{ NodeName = '*' # Common networking InterfaceAlias = 'Ethernet' DefaultGateway = '192.168.3.1' SubnetMask = 24 AddressFamily = 'IPv4' DnsServerAddress = '192.168.3.10' # Domain and Domain Controller information DomainName = "Company.Pri" DomainDN = "DC=Company,DC=Pri" DCDatabasePath = "C:\NTDS" DCLogPath = "C:\NTDS" SysvolPath = "C:\Sysvol" PSDscAllowPlainTextPassword = $true PSDscAllowDomainUser = $true # DHCP Server Data DHCPName = 'LabNet' DHCPIPStartRange = '192.168.3.200' DHCPIPEndRange = '192.168.3.250' DHCPSubnetMask = '255.255.255.0' DHCPState = 'Active' DHCPAddressFamily = 'IPv4' DHCPLeaseDuration = '00:08:00' DHCPScopeID = '192.168.3.0' DHCPDnsServerIPAddress = '192.168.3.10' DHCPRouter = '192.168.3.1' # ADCS Certificate Services information CACN = 'Company.Pri' CADNSuffix = "C=US,L=Phoenix,S=Arizona,O=Company" CADatabasePath = "C:\windows\system32\CertLog" CALogPath = "C:\CA_Logs" ADCSCAType = 'EnterpriseRootCA' ADCSCryptoProviderName = 'RSA#Microsoft Software Key Storage Provider' ADCSHashAlgorithmName = 'SHA256' ADCSKeyLength = 2048 ADCSValidityPeriod = 'Years' ADCSValidityPeriodUnits = 2 # Lability default node settings Lability_SwitchName = 'LabNet' Lability_ProcessorCount = 1 Lability_StartupMemory = 1GB Lability_Media = '2016TP5_x64_Standard_EN' # Can be Core,Win10,2012R2,nano # 2016TP5_x64_Standard_Core_EN # WIN10_x64_Enterprise_EN_Eval } @{ NodeName = 'DC1' IPAddress = '192.168.3.10' Role = @('DC', 'DHCP', 'ADCS') Lability_BootOrder = 10 Lability_BootDelay = 60 # Number of seconds to delay before others Lability_timeZone = 'US Mountain Standard Time' #[System.TimeZoneInfo]::GetSystemTimeZones() } @{ NodeName = 'S1' IPAddress = '192.168.3.50' Role = @('DomainJoin', 'Web') Lability_BootOrder = 20 Lability_timeZone = 'US Mountain Standard Time' #[System.TimeZoneInfo]::GetSystemTimeZones() } @{ NodeName = 'Client' IPAddress = '192.168.2.100' Role = @('DomainJoin', 'Web') Lability_ProcessorCount = 2 Lability_StartupMemory = 2GB Lability_Media = 'WIN10_x64_Enterprise_EN_Eval' Lability_BootOrder = 20 Lability_timeZone = 'US Mountain Standard Time' #[System.TimeZoneInfo]::GetSystemTimeZones() } ); NonNodeData = @{ Lability = @{ # EnvironmentPrefix = 'PS-GUI-' # this will prefix the VM names Media = @(); # Custom media additions that are different than the supplied defaults (media.json) Network = @( # Virtual switch in Hyper-V @{ Name = 'LabNet'; Type = 'Internal'; NetAdapterName = 'Ethernet'; AllowManagementOS = $true; } ); DSCResource = @( ## Download published version from the PowerShell Gallery or Github @{ Name = 'xActiveDirectory'; RequiredVersion = "2.13.0.0"; Provider = 'PSGallery'; }, @{ Name = 'xComputerManagement'; RequiredVersion = '1.8.0.0'; Provider = 'PSGallery'; } @{ Name = 'xNetworking'; RequiredVersion = '2.12.0.0'; Provider = 'PSGallery'; } @{ Name = 'xDhcpServer'; RequiredVersion = '1.5.0.0'; Provider = 'PSGallery'; } @{ Name = 'xADCSDeployment'; RequiredVersion = '1.0.0.0'; Provider = 'PSGallery'; } ); }; }; }; |