-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDSCInstallWindowsFeatures.ps1
More file actions
42 lines (39 loc) · 1.15 KB
/
DSCInstallWindowsFeatures.ps1
File metadata and controls
42 lines (39 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Configuration InstallWindowsFeatures {
Import-DscResource -ModuleName PsDesiredStateConfiguration
Node "localhost" {
LocalConfigurationManager {
RebootNodeIfNeeded = $true
ActionAfterReboot = 'ContinueConfiguration'
}
WindowsFeature Hyper-V {
Name = "Hyper-V"
Ensure = "Present"
IncludeAllSubFeature = $true
}
WindowsFeature Hyper-V-PowerShell {
Name = "Hyper-V-PowerShell"
Ensure = "Present"
IncludeAllSubFeature = $true
}
WindowsFeature RSAT-Hyper-V-Tools {
Name = "RSAT-Hyper-V-Tools"
Ensure = "Present"
IncludeAllSubFeature = $true
}
WindowsFeature Containers {
Name = "Containers"
Ensure = "Present"
IncludeAllSubFeature = $true
}
WindowsFeature DHCP {
Name = "DHCP"
Ensure = "Present"
IncludeAllSubFeature = $true
}
WindowsFeature RSAT-DHCP {
Name = "RSAT-DHCP"
Ensure = "Present"
IncludeAllSubFeature = $true
}
}
}