-
Notifications
You must be signed in to change notification settings - Fork 1
/
_install-dsc-modules.ps1
106 lines (83 loc) · 1.8 KB
/
_install-dsc-modules.ps1
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# fail on errors and include uplift helpers
$ErrorActionPreference = "Stop"
Import-Module Uplift.Core
Write-UpliftMessage "Installing PowerShell Modules..."
Write-UpliftEnv
# - install other DSC packages
$packages = @(
@{
Id = "PSWindowsUpdate";
Version = "2.0.0.4"
},
@{
Id = "Pester";
Version = "4.3.1"
},
@{
Id = "cChoco";
Version = "2.3.1.0"
},
@{
Id = "cFirewall";
Version = "1.0.1"
},
@{
Id = "SharePointDSC";
Version = "1.9.0.0"
},
@{
Id = "MS_xVisualStudio";
Version = "1.0.0.0"
},
@{
Id = "xActiveDirectory";
Version = "2.17.0.0"
},
@{
Id = "xSQLServer";
Version = "9.1.0.0"
},
@{
Id = "xDSCFirewall";
Version = "1.6.21"
},
@{
Id = "xNetworking";
Version = "5.5.0.0"
},
@{
Id = "xTimeZone";
Version = "1.7.0.0"
},
@{
Id = "xWebAdministration";
Version = "1.19.0.0"
},
@{
Id = "xPendingReboot";
Version = "0.3.0.0"
},
@{
Id = "xComputerManagement";
Version = "4.0.0.0"
},
@{
Id = "DSCR_Shortcut";
Version = "1.3.7"
},
@{
Id = "ComputerManagementDsc";
Version = "6.1.0.0"
},
@{
Id = "xSystemSecurity";
Version = "1.4.0.0"
},
@{
Id = "xCredSSP";
Version = "1.3.0.0"
}
)
Write-UpliftMessage "Installing DSC modules: $packages"
Install-UpliftPSModules $packages
exit 0