Examples/Deploy_MDT_Server_ConfigurationData.psd1

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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# For instructions of how to edit this file and detailed usage of the module
# open your prefered Internet browser and use the following link:
# https://github.com/addlevel/cMDT

@{
    AllNodes = 
    @(
        @{

            #Global Settings for the configuration of Desired State Local Configuration Manager:
            NodeName                    = "*"
            PSDscAllowPlainTextPassword = $true
            PSDscAllowDomainUser        = $true
            RebootNodeIfNeeded          = $true
            ConfigurationMode           = "ApplyAndAutoCorrect"      

        },


        @{

            #Node Settings for the configuration of an MDT Server.
            NodeName           = "$env:computername"
            Role               = "MDT Server"

            #SMB or web link to a pull server
            SourcePath         = "C:\Sources"

            #Local account to create for MDT. Used for making the connection to the deployment share.
            MDTLocalAccount    = "SVCMDTConnect001"
            MDTLocalPassword   = "ChangeMe1!"

            #Local administrator password on deployed clients.
            LocalAdminPassword   = "ChangeMe1!"

            #Download and extraction temporary folder
            TempLocation       = "C:\Temp"

            #MDT deoployment share paths
            PSDriveName        = "DS001"
            PSDrivePath        = "C:\DeploymentShare"

            #SMB share name for the deployment share.
            PSDriveShareName   = "DeploymentShare$"
            
            #Selection profile creation
            SelectionProfiles  = @("WinPE x86","WinPE x64")

            #MDT Software installation prerequisites
            MDTInstallationSoftware   = @{
                MDT                   = @(
                    @{  
                        Ensure        = "Present"
                        Name          = "Microsoft Deployment Toolkit 2013 Update 2 (6.3.8330.1000)"
                        ProductId     = "F172B6C7-45DD-4C22-A5BF-1B2C084CADEF"
                        SourcePath    = "https://download.microsoft.com/download/3/0/1/3012B93D-C445-44A9-8BFB-F28EB937B060/MicrosoftDeploymentToolkit2013_x64.msi"
                    }
                )
                ADK                   = @(
                    @{                
                        Ensure        = "Present"
                        Name          = "Windows Assessment and Deployment Kit - Windows 10"
                        ProductId     = "82daddb6-d4e0-42cb-988d-1e7f5739e155"
                        SourcePath    = "http://download.microsoft.com/download/3/8/B/38BBCA6A-ADC9-4245-BCD8-DAA136F63C8B/adk/adksetup.exe"
                    }
                )
                C01                   = @(
                    @{  
                        Ensure        = "Present"
                        SourcePath    = "http://deploymentresearch.com/mnfiles/modelalias.zip"
                    }
                )
            }

            #Operating systems to import to MDT
            OperatingSystems   = @(
                @{  
                    Ensure     = "Present"
                    Name       = "Windows 10 Enterprise x64"
                    Version    = "1.0.0.0"
                    Path       = "\Operating Systems\Windows 10"
                    SourcePath =  "\Install"
                }
            )

            #Task sqeuences; are dependent on imported Operating system in MDT
            TaskSequences   = @(
                @{  
                    Ensure      = "Present"
                    Name        = "Windows 10 Enterprise x64"
                    Path        = "\Task Sequences\Windows 10"
                    WIMFileName = "install"
                    ID          = "DEP-W10-X64-001"
                }
            )

            #Specific task sequence steps
            TaskSequenceSetVariableSteps = @(
                @{
                    Ensure                      = "Present"
                    TaskSequenceId              = "DEP-W10-X64-001"
                    TaskSequenceParentGroupName = "Preinstall"
                    InsertAfterStep             = "Enable BitLocker (Offline)"
                    TaskSequenceVariableName    = "DriverGroup001"
                    TaskSequenceVariableValue   = "Windows 10 x64\%Make%\%ModelAlias%"
                    TaskSequenceStepName        = "Set Drivergroup001"
                    TaskSequenceStepDescription = "This is a test description"
                    Disable                     = $false
                    ContinueOnError             = $false
                    SuccessCodeList             = "0 3010"
                }
            )
            <#
            #Drivers to import
            Drivers = @(
                @{
                    Ensure = "Present"
                    Name = "HPElitebookG1840"
                    Version = "1.0.0.0"
                    Path = "\Out-of-Box Drivers\Windows 10 x64\HP"
                    SourcePath = "\HPElitebookG1840"
                    Comment = "Drivers for Win10 for HP Elitebook G1 840"
                }
            )
 
            Applications = @(
                @{
                    Ensure = "Present"
                    Name = "PortQryUI"
                    Version = "1.0.0.0"
                    Path = "\Applications\Common Applications\Desktop"
                    ShortName = "PortQryUI"
                    Publisher = "PortQryUI"
                    Language = "en-US"
                    CommandLine = "PortQryUI.exe"
                    WorkingDirectory = ".\"
                    ApplicationSourcePath = "https://web.url/PortQryUI"
                    DestinationFolder = "Common Applications\Desktop\PortQryUI"
                }
            )
 
            #Application bundles to create
            ApplicationBundles = @(
                @{
                    Ensure = "Present"
                    BundleName = "DeveloperApps"
                    BundledApplications = @('seven-z-1514-x64_1.0.0.0')
                    Version = "1.0.0.0"
                    Publisher = "7-Zip"
                    Language = "en-US"
                    Hide = $false
                    Enable = $true
                    Folder = "Applications"
                }
            )
            #>


            #Custom folder/files to add to the MDT
            CustomSettings   = @(
                @{  
                    Ensure     = "Present"
                    Name       = "PEExtraFiles"
                    Version    = "1.0.0.0"
                    SourcePath = "\PEExtraFiles"
                }
                @{  
                    Ensure     = "Present"
                    Name       = "Scripts"
                    Version    = "1.0.0.0"
                    SourcePath = "\Scripts"
                    Protected  = $true
                }
            )

            #Custom settings and boot ini file management
            CustomizeIniFiles  = @(
                @{  
                    Ensure               = "Present"
                    Name                 = "CustomSettingsIni"
                    Path                 = "\Control\CustomSettings.ini"
                    HomePage             = "http://www.otherdomain.com"
                    SkipAdminPassword    = "NO"
                    SkipApplications     = "NO"
                    SkipBitLocker        = "NO"
                    SkipCapture          = "YES"
                    SkipComputerBackup   = "YES"
                    SkipComputerName     = "NO"
                    SkipDomainMembership = "NO"
                    SkipFinalSummary     = "NO"
                    SkipLocaleSelection  = "NO"
                    SkipPackageDisplay   = "YES"
                    SkipProductKey       = "YES"
                    SkipRoles            = "YES"
                    SkipSummary          = "NO"
                    SkipTimeZone         = "NO"
                    SkipUserData         = "YES"
                    SkipTaskSequence     = "NO"
                    JoinDomain           = "ads.otherdomain.com"
                    DomainAdmin          = "MDTDomJoinAccount"
                    DomainAdminDomain    = "ads.otherdomain.com"
                    DomainAdminPassword  = "ChangeMe1!"
                    MachineObjectOU      = "OU=Win10-Prod,OU=Clients,OU=Container,DC=ads,DC=otherdomain,DC=com"
                    TimeZoneName         = "W. Europe Standard Time"
                    WSUSServer           = ""
                    UserLocale           = "en-US"
                    KeyboardLocale       = "en-US"
                    UILanguage           = "en-US"
                    ProductKey           = ""
                    EventService         = ""
                }
                @{  
                    Ensure           = "Present"
                    Name             = "BootstrapIni"
                    Path             = "\Control\Bootstrap.ini"
                    DeployRoot       = "\DeploymentShare$"
                    KeyboardLocalePE = "0411:E0010411"
                }
            )

            #Boot image creation and management
            BootImage  = @(
                @{  
                    Ensure                  = "Present"
                    Version                 = "1.0.0.0"
                    Path                    = "\Boot\LiteTouchPE_x64.wim"
                    ImageName               = "LiteTouchTest X64"
                    ExtraDirectory          = "PEExtraFiles"
                    BackgroundFile          = "PEExtraFiles\WinPEBackground.bmp"
                    LiteTouchWIMDescription = "Otherdomain Deployment"
                    FeaturePacks            = "winpe-dismcmdlets,winpe-mdac,winpe-netfx,winpe-powershell,winpe-storagewmi"
                }
            )
        }

    ); 
}