Configurations/PowerShellLab/VMConfigurationData.psd1
<# Notes:
Authors: Jason Helmick, Melissa (Missy) Januszko, and Jeff Hicks The bulk of this DC, DHCP, ADCS config is authored by Melissa (Missy) Januszko and Jason Helmick. Currently on her public DSC hub located here: https://github.com/majst32/DSC_public.git Disclaimer This example code is provided without copyright and AS IS. It is free for you to use and modify. #> @{ AllNodes = @( @{ NodeName = '*' # Lab Password - assigned to Administrator and Users LabPassword = 'P@ssw0rd' # Common networking InterfaceAlias = 'Ethernet' DefaultGateway = '192.168.3.1' SubnetMask = 24 AddressFamily = 'IPv4' IPNetwork = '192.168.3.0/24' IPNatName = 'LabNat' DnsServerAddress = '192.168.3.10' # Firewall settings to enable FirewallRuleNames = @( 'FPS-ICMP4-ERQ-In', 'FPS-ICMP6-ERQ-In', 'FPS-SMB-In-TCP', 'WMI-WINMGMT-In-TCP-NoScope', 'WMI-WINMGMT-Out-TCP-NoScope', 'WMI-WINMGMT-In-TCP', 'WMI-WINMGMT-Out-TCP' ) # 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_MinimumMemory = 1GB Lability_MaximumMemory = 16GB SecureBoot = $false Lability_RegisteredOwner = "Administrator" Lability_RegisteredOrganization = "Company.pri" Lability_Media = '2016_x64_Standard_Core_EN_Eval' }, <# Available Roles for computers DC = Domain Controller DHCP = Dynamic Host Configuration Protocol ADCS = Active Directory Certificate SErvices - plus autoenrollment GPO's and DSC and web server certs Web = Basic web server RSAT = Remote Server Administration Tools for the client RDP = enables RDP and opens up required firewall rules DomainJoin = joins a computer to the domain #> @{ NodeName = 'DOM1' IPAddress = '192.168.3.10' Role = @('DC', 'DHCP', 'ADCS','RDP') Lability_BootOrder = 10 Lability_BootDelay = 60 # Number of seconds to delay before others Lability_timeZone = 'US Mountain Standard Time' #[System.TimeZoneInfo]::GetSystemTimeZones() Lability_Media = '2019_x64_Standard_EN_Core_Eval' Lability_StartupMemory = 2GB Lability_ProcessorCount = 2 CustomBootStrap = @' # This must be set to handle larger .mof files Set-Item -path wsman:\localhost\maxenvelopesize -value 1000 '@ }, @{ NodeName = 'SRV1' IPAddress = '192.168.3.50' #Role = 'DomainJoin' # example of multiple roles @('DomainJoin', 'Web') Role = @('DomainJoin','RDP') Lability_BootOrder = 20 Lability_StartupMemory = 1GB Lability_timeZone = 'US Mountain Standard Time' #[System.TimeZoneInfo]::GetSystemTimeZones() Lability_Media = '2019_x64_Standard_EN_Core_Eval' }, @{ NodeName = 'SRV2' IPAddress = '192.168.3.51' #Role = 'DomainJoin' # example of multiple roles @('DomainJoin', 'Web') Role = @('DomainJoin', 'Web','RDP') Lability_StartupMemory = 1GB Lability_BootOrder = 20 Lability_timeZone = 'US Mountain Standard Time' #[System.TimeZoneInfo]::GetSystemTimeZones() Lability_Media = '2019_x64_Standard_EN_Core_Eval' }, @{ NodeName = 'SRV3' IPAddress = '192.168.3.60' Role = @('RDP') Lability_BootOrder = 20 Lability_Media = '2022_x64_Standard_EN_Core_Eval' Lability_timeZone = 'US Mountain Standard Time' #[System.TimeZoneInfo]::GetSystemTimeZones() Lability_ProcessorCount = 1 Lability_StartupMemory = 1GB }, @{ NodeName = 'WIN10' IPAddress = '192.168.3.100' Role = @('domainJoin', 'RDP', 'RSAT') Lability_ProcessorCount = 2 Lability_StartupMemory = 4GB Lability_MinimumMemory = 4GB Lability_Media = 'WIN10_x64_Enterprise_22H2_EN_Eval' Lability_BootOrder = 20 Lability_timeZone = 'US Mountain Standard Time' #[System.TimeZoneInfo]::GetSystemTimeZones() Lability_Resource = @() CustomBootStrap = '' } #> ) NonNodeData = @{ Lability = @{ # You can uncomment this line to add a prefix to the virtual machine name. # It will not change the guest computername # See https://github.com/pluralsight/PS-AutoLab-Env/blob/master/Detailed-Setup-Instructions.md # for more information. #EnvironmentPrefix = 'AutoLab-' 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 = "3.0.0.0"; Provider = 'PSGallery' }, @{ Name = 'xNetworking'; RequiredVersion = '5.7.0.0'; Provider = 'PSGallery' }, @{ Name = 'xDhcpServer'; RequiredVersion = '3.1.1'; Provider = 'PSGallery' }, @{ Name = 'xPSDesiredStateConfiguration'; RequiredVersion = '9.1.0'; Provider = 'PSGallery' }, @{ Name = 'ComputerManagementDSC'; RequiredVersion = '9.0.0'; Provider = 'PSGallery' }, @{ Name = 'xADCSDeployment'; RequiredVersion = '1.4.0.0'; Provider = 'PSGallery' }, @{ Name = 'xDnsServer'; RequiredVersion = "2.0.0"; Provider = 'PSGallery' }, @{ Name = 'xWebAdministration'; RequiredVersion = '3.3.0'; Provider = 'PSGallery' } ) Resource = @( @{ } ) } } } |