@@ -15,104 +15,104 @@ Goal - Create a Domain Controller, Populute with OU's Groups and Users.
1515Disclaimer
1616
1717This example code is provided without copyright and AS IS. It is free for you to use and modify.
18- Note: These demos should not be run as a script. These are the commands that I use in the
18+ Note: These demos should not be run as a script. These are the commands that I use in the
1919demonstrations and would need to be modified for your environment.
2020
21- #>
21+ #>
2222
2323@ {
24- AllNodes = @ (
24+ AllNodes = @ (
2525 @ {
26- NodeName = ' *'
27-
26+ NodeName = ' *'
27+
2828 # Common networking
29- InterfaceAlias = ' Ethernet'
30- DefaultGateway = ' 192.168.3.1'
31- SubnetMask = 24
32- AddressFamily = ' IPv4'
33- DnsServerAddress = ' 192.168.3.10'
34-
29+ InterfaceAlias = ' Ethernet'
30+ DefaultGateway = ' 192.168.3.1'
31+ SubnetMask = 24
32+ AddressFamily = ' IPv4'
33+ DnsServerAddress = ' 192.168.3.10'
34+
3535 # Domain and Domain Controller information
36- DomainName = " Company.Pri"
37- DomainDN = " DC=Company,DC=Pri"
38- DCDatabasePath = " C:\NTDS"
39- DCLogPath = " C:\NTDS"
40- SysvolPath = " C:\Sysvol"
36+ DomainName = " Company.Pri"
37+ DomainDN = " DC=Company,DC=Pri"
38+ DCDatabasePath = " C:\NTDS"
39+ DCLogPath = " C:\NTDS"
40+ SysvolPath = " C:\Sysvol"
4141 PSDscAllowPlainTextPassword = $true
42- PSDscAllowDomainUser = $true
43-
42+ PSDscAllowDomainUser = $true
43+
4444 # DHCP Server Data
45- DHCPName = ' LabNet'
46- DHCPIPStartRange = ' 192.168.3.200'
47- DHCPIPEndRange = ' 192.168.3.250'
48- DHCPSubnetMask = ' 255.255.255.0'
49- DHCPState = ' Active'
50- DHCPAddressFamily = ' IPv4'
51- DHCPLeaseDuration = ' 00:08:00'
52- DHCPScopeID = ' 192.168.3.0'
53- DHCPDnsServerIPAddress = ' 192.168.3.10'
54- DHCPRouter = ' 192.168.3.1'
45+ DHCPName = ' LabNet'
46+ DHCPIPStartRange = ' 192.168.3.200'
47+ DHCPIPEndRange = ' 192.168.3.250'
48+ DHCPSubnetMask = ' 255.255.255.0'
49+ DHCPState = ' Active'
50+ DHCPAddressFamily = ' IPv4'
51+ DHCPLeaseDuration = ' 00:08:00'
52+ DHCPScopeID = ' 192.168.3.0'
53+ DHCPDnsServerIPAddress = ' 192.168.3.10'
54+ DHCPRouter = ' 192.168.3.1'
5555
5656 # Lability default node settings
57- Lability_SwitchName = ' LabNet'
58- Lability_ProcessorCount = 1
59- Lability_StartupMemory = 1 GB
60- SecureBoot = $false
61- Lability_Media = ' 2016_x64_Standard_EN_Eval' # Can be Core,Win10,2012R2,nano
62- # 2016_x64_Standard_EN_Eval
63- # 2016_x64_Standard_Core_EN_Eval
64- # 2016_x64_Datacenter_EN_Eval
65- # 2016_x64_Datacenter_Core_EN_Eval
66- # 2016_x64_Standard_Nano_EN_Eval
67- # 2016_x64_Datacenter_Nano_EN_Eval
68- # 2012R2_x64_Standard_EN_Eval
69- # 2012R2_x64_Standard_EN_V5_Eval
70- # 2012R2_x64_Standard_Core_EN_Eval
71- # 2012R2_x64_Standard_Core_EN_V5_Eval
72- # 2012R2_x64_Datacenter_EN_V5_Eval
73- # WIN10_x64_Enterprise_EN_Eval
57+ Lability_SwitchName = ' LabNet'
58+ Lability_ProcessorCount = 1
59+ Lability_StartupMemory = 1 GB
60+ SecureBoot = $false
61+ Lability_Media = ' 2016_x64_Standard_EN_Eval' # Can be Core,Win10,2012R2,nano
62+ # 2016_x64_Standard_EN_Eval
63+ # 2016_x64_Standard_Core_EN_Eval
64+ # 2016_x64_Datacenter_EN_Eval
65+ # 2016_x64_Datacenter_Core_EN_Eval
66+ # 2016_x64_Standard_Nano_EN_Eval
67+ # 2016_x64_Datacenter_Nano_EN_Eval
68+ # 2012R2_x64_Standard_EN_Eval
69+ # 2012R2_x64_Standard_EN_V5_Eval
70+ # 2012R2_x64_Standard_Core_EN_Eval
71+ # 2012R2_x64_Standard_Core_EN_V5_Eval
72+ # 2012R2_x64_Datacenter_EN_V5_Eval
73+ # WIN10_x64_Enterprise_EN_Eval
7474 }
7575 @ {
76- NodeName = ' DC'
77- IPAddress = ' 192.168.3.10'
78- Role = @ (' DC' , ' DHCP' )
76+ NodeName = ' DC'
77+ IPAddress = ' 192.168.3.10'
78+ Role = @ (' DC' , ' DHCP' )
7979 Lability_BootOrder = 10
8080 Lability_BootDelay = 60 # Number of seconds to delay before others
81- Lability_timeZone = ' US Mountain Standard Time' # [System.TimeZoneInfo]::GetSystemTimeZones()
81+ Lability_timeZone = ' US Mountain Standard Time' # [System.TimeZoneInfo]::GetSystemTimeZones()
8282 }
8383 @ {
84- NodeName = ' S1'
85- IPAddress = ' 192.168.3.50'
86- Role = @ (' DomainJoin' , ' Web' )
84+ NodeName = ' S1'
85+ IPAddress = ' 192.168.3.50'
86+ Role = @ (' DomainJoin' , ' Web' )
8787 Lability_BootOrder = 20
88- Lability_timeZone = ' US Mountain Standard Time' # [System.TimeZoneInfo]::GetSystemTimeZones()
88+ Lability_timeZone = ' US Mountain Standard Time' # [System.TimeZoneInfo]::GetSystemTimeZones()
8989 }
9090 @ {
91- NodeName = ' Client'
92- IPAddress = ' 192.168.3.100'
93- Role = ' DomainJoin'
91+ NodeName = ' Client'
92+ IPAddress = ' 192.168.3.100'
93+ Role = ' DomainJoin'
9494 Lability_ProcessorCount = 2
95- Lability_StartupMemory = 2 GB
96- Lability_Media = ' WIN10_x64_Enterprise_EN_Eval'
97- Lability_BootOrder = 20
98- Lability_timeZone = ' US Mountain Standard Time' # [System.TimeZoneInfo]::GetSystemTimeZones()
95+ Lability_StartupMemory = 2 GB
96+ Lability_Media = ' WIN10_x64_Enterprise_EN_Eval'
97+ Lability_BootOrder = 20
98+ Lability_timeZone = ' US Mountain Standard Time' # [System.TimeZoneInfo]::GetSystemTimeZones()
9999 }
100100
101-
101+
102102 );
103103 NonNodeData = @ {
104104 Lability = @ {
105- # EnvironmentPrefix = 'PS-GUI-' # this will prefix the VM names
106- Media = @ (); # Custom media additions that are different than the supplied defaults (media.json)
107- Network = @ ( # Virtual switch in Hyper-V
108- @ { Name = ' LabNet' ; Type = ' Internal' ; NetAdapterName = ' Ethernet' ; AllowManagementOS = $true ;}
105+ # EnvironmentPrefix = 'PS-GUI-' # this will prefix the VM names
106+ Media = @ (); # Custom media additions that are different than the supplied defaults (media.json)
107+ Network = @ ( # Virtual switch in Hyper-V
108+ @ { Name = ' LabNet' ; Type = ' Internal' ; NetAdapterName = ' Ethernet' ; AllowManagementOS = $true ; }
109109 );
110110 DSCResource = @ (
111111 # # Download published version from the PowerShell Gallery or Github
112- @ { Name = ' xActiveDirectory' ; RequiredVersion = " 2.13.0.0" ; Provider = ' PSGallery' ; },
112+ @ { Name = ' xActiveDirectory' ; RequiredVersion = " 2.13.0.0" ; Provider = ' PSGallery' ; },
113113 @ { Name = ' xComputerManagement' ; RequiredVersion = ' 1.8.0.0' ; Provider = ' PSGallery' ; }
114114 @ { Name = ' xNetworking' ; RequiredVersion = ' 2.12.0.0' ; Provider = ' PSGallery' ; }
115- @ { Name = ' xDhcpServer' ; RequiredVersion = ' 1.5.0.0' ; Provider = ' PSGallery' ; }
115+ @ { Name = ' xDhcpServer' ; RequiredVersion = ' 1.5.0.0' ; Provider = ' PSGallery' ; }
116116
117117 );
118118 };
0 commit comments