Configurations/Archive/Deprecated-POC-DCDHCP-Client-Servers-GUI/DCDHCP-Client-Servers-GUI.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'

            # Lability default node settings
            Lability_SwitchName         = 'LabNet'
            Lability_ProcessorCount     = 1
            Lability_StartupMemory      = 1GB
            SecureBoot                  = $false
            Lability_Media              = '2016_x64_Standard_EN_Eval' # Can be Core,Win10,2012R2,nano
            # 2016_x64_Standard_EN_Eval
            # 2016_x64_Standard_Core_EN_Eval
            # 2016_x64_Datacenter_EN_Eval
            # 2016_x64_Datacenter_Core_EN_Eval
            # 2016_x64_Standard_Nano_EN_Eval
            # 2016_x64_Datacenter_Nano_EN_Eval
            # 2012R2_x64_Standard_EN_Eval
            # 2012R2_x64_Standard_EN_V5_Eval
            # 2012R2_x64_Standard_Core_EN_Eval
            # 2012R2_x64_Standard_Core_EN_V5_Eval
            # 2012R2_x64_Datacenter_EN_V5_Eval
            # WIN10_x64_Enterprise_EN_Eval
        }
        @{
            NodeName           = 'DC'
            IPAddress          = '192.168.3.10'
            Role               = @('DC', 'DHCP')
            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.3.100'
            Role                    = 'DomainJoin'
            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'; }

            );
        };
    };
};