@@ -15,104 +15,104 @@ Goal - Create a Domain Controller, Populute with OU's Groups and Users.
15
15
Disclaimer
16
16
17
17
This 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
19
19
demonstrations and would need to be modified for your environment.
20
20
21
- #>
21
+ #>
22
22
23
23
@ {
24
- AllNodes = @ (
24
+ AllNodes = @ (
25
25
@ {
26
- NodeName = ' *'
27
-
26
+ NodeName = ' *'
27
+
28
28
# 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
+
35
35
# 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"
41
41
PSDscAllowPlainTextPassword = $true
42
- PSDscAllowDomainUser = $true
43
-
42
+ PSDscAllowDomainUser = $true
43
+
44
44
# 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'
55
55
56
56
# 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
74
74
}
75
75
@ {
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' )
79
79
Lability_BootOrder = 10
80
80
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()
82
82
}
83
83
@ {
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' )
87
87
Lability_BootOrder = 20
88
- Lability_timeZone = ' US Mountain Standard Time' # [System.TimeZoneInfo]::GetSystemTimeZones()
88
+ Lability_timeZone = ' US Mountain Standard Time' # [System.TimeZoneInfo]::GetSystemTimeZones()
89
89
}
90
90
@ {
91
- NodeName = ' Client'
92
- IPAddress = ' 192.168.3.100'
93
- Role = ' DomainJoin'
91
+ NodeName = ' Client'
92
+ IPAddress = ' 192.168.3.100'
93
+ Role = ' DomainJoin'
94
94
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()
99
99
}
100
100
101
-
101
+
102
102
);
103
103
NonNodeData = @ {
104
104
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 ; }
109
109
);
110
110
DSCResource = @ (
111
111
# # 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' ; },
113
113
@ { Name = ' xComputerManagement' ; RequiredVersion = ' 1.8.0.0' ; Provider = ' PSGallery' ; }
114
114
@ { 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' ; }
116
116
117
117
);
118
118
};
0 commit comments