@@ -16,27 +16,36 @@ Installs the NDES role service.
16
16
## SYNTAX
17
17
18
18
### DefaultParameterSet (Default)
19
+
19
20
```
20
- Install-AdcsNetworkDeviceEnrollmentService [-ApplicationPoolIdentity] [-RAName <String>] [-RAEmail <String>]
21
- [-RACompany <String>] [-RADepartment <String>] [-RACity <String>] [-RAState <String>] [-RACountry <String>]
22
- [-SigningProviderName <String>] [-SigningKeyLength <Int32>] [-EncryptionProviderName <String>]
23
- [-EncryptionKeyLength <Int32>] [-CAConfig <String>] [-Force] [-Credential <PSCredential>] [-WhatIf] [-Confirm]
24
- [<CommonParameters>]
21
+ Install-AdcsNetworkDeviceEnrollmentService [-ApplicationPoolIdentity]
22
+ [-RAName <String>] [-RAEmail <String>] [-RACompany <String>]
23
+ [-RADepartment <String>] [-RACity <String>] [-RAState <String>]
24
+ [-RACountry <String>] [-SigningProviderName <String>]
25
+ [-SigningKeyLength <Int32>] [-EncryptionProviderName <String>]
26
+ [-EncryptionKeyLength <Int32>] [-CAConfig <String>] [-Force]
27
+ [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
25
28
```
26
29
27
30
### ServiceAccountParameterSet
31
+
28
32
```
29
- Install-AdcsNetworkDeviceEnrollmentService -ServiceAccountName <String> -ServiceAccountPassword <SecureString>
30
- [-RAName <String>] [-RAEmail <String>] [-RACompany <String>] [-RADepartment <String>] [-RACity <String>]
31
- [-RAState <String>] [-RACountry <String>] [-SigningProviderName <String>] [-SigningKeyLength <Int32>]
32
- [-EncryptionProviderName <String>] [-EncryptionKeyLength <Int32>] [-CAConfig <String>] [-Force]
33
- [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
33
+ Install-AdcsNetworkDeviceEnrollmentService -ServiceAccountName <String>
34
+ -ServiceAccountPassword <SecureString> [-RAName <String>]
35
+ [-RAEmail <String>] [-RACompany <String>] [-RADepartment <String>]
36
+ [-RACity <String>] [-RAState <String>] [-RACountry <String>]
37
+ [-SigningProviderName <String>] [-SigningKeyLength <Int32>]
38
+ [-EncryptionProviderName <String>] [-EncryptionKeyLength <Int32>]
39
+ [-CAConfig <String>] [-Force] [-Credential <PSCredential>] [-WhatIf]
40
+ [-Confirm] [<CommonParameters>]
34
41
```
35
42
36
43
## DESCRIPTION
37
- The ** Install-AdcsNetworkDeviceEnrollmentService** cmdlet performs the configuration of the Network Device Enrollment Service (NDES) role service.
38
44
39
- To remove the NDES role service, use the ** Uninstall-AdcsNetworkDeviceEnrollmentService** cmdlet.
45
+ The ` Install-AdcsNetworkDeviceEnrollmentService ` cmdlet performs the configuration of the Network
46
+ Device Enrollment Service (NDES) role service.
47
+
48
+ To remove the NDES role service, use the ` Uninstall-AdcsNetworkDeviceEnrollmentService ` cmdlet.
40
49
41
50
You can import the cmdlet by running the following commands from Windows PowerShell:
42
51
@@ -48,42 +57,70 @@ Int is equivalent to Int32 in the [.NET Framework](https://msdn.microsoft.com/en
48
57
## EXAMPLES
49
58
50
59
### Example 1: Display the default NDES settings
51
- ```
52
- PS C:\> Install-AdcsNetworkDeviceEnrollmentService -ApplicationPoolIdentity -WhatIf
60
+
61
+ ``` powershell
62
+ Install-AdcsNetworkDeviceEnrollmentService -ApplicationPoolIdentity -WhatIf
53
63
```
54
64
55
65
This command displays the default NDES settings that will be configured if it is installed.
56
66
57
67
### Example 2: Display the default NDES settings using a service account name and password
58
- ```
59
- PS C:\> Install-AdcsNetworkDeviceEnrollmentService -ServiceAccountName "CONTOSO\svcNDES" -ServiceAccountPassword (read-host "Set user password" -assecurestring) -WhatIf
68
+
69
+ ``` powershell
70
+ $params = @{
71
+ ServiceAccountName = "CONTOSO\svcNDES"
72
+ ServiceAccountPassword = (Read-Host "Set user password" -AsSecureString)
73
+ WhatIf = $true
74
+ }
75
+ Install-AdcsNetworkDeviceEnrollmentService @params
60
76
```
61
77
62
- This command displays the default settings when NDES is using a service account without making any changes to the configuration.
63
- This command uses the service account named "CONTOSO\svcNDES" that is a member of the local computer's IIS_USRS group.
78
+ This command displays the default settings when NDES is using a service account without making any
79
+ changes to the configuration. This command uses the service account named ` CONTOSO\svcNDES ` that
80
+ is a member of the local computer's ` IIS_USRS ` group.
64
81
65
82
### Example 3: Install NDES using the application pool identity
66
- ```
67
- PS C:\> Install-AdcsNetworkDeviceEnrollmentService -ApplicationPoolIdentity -CAConfig "<CAComputerName>\<CACommonName>"
83
+
84
+ ``` powershell
85
+ $params = @{
86
+ ApplicationPoolIdentity = $true
87
+ CAConfig = "<CAComputerName>\<CACommonName>"
88
+ }
89
+ Install-AdcsNetworkDeviceEnrollmentService @params
68
90
```
69
91
70
- This command installs NDES using the application pool identity to use a remote CA as specified by the CA computer ` <CAComputerName>\<CACommonName> ` .
71
- Substitute the appropriate CA computer name and common name for ` <CAComputerName> ` and ` <CACommonName> ` .
92
+ This command installs NDES using the application pool identity to use a remote CA as specified by
93
+ the CA computer ` <CAComputerName>\<CACommonName> ` . Substitute the appropriate CA computer name and
94
+ common name for ` <CAComputerName> ` and ` <CACommonName> ` .
72
95
73
96
### Example 4: Install NDES using a specific service account
74
- ```
75
- PS C:\> Install-AdcsNetworkDeviceEnrollmentService -ServiceAccountName "CONTOSO\svcNDES" -ServiceAccountPassword (read-host "Set user password" -assecurestring) -CAConfig "CAComputerName\CAName" -RAName "Contoso-NDES-RA" -RACountry "US" -RACompany "Contoso" -SigningProviderName "Microsoft Strong Cryptographic Provider" -SigningKeyLength 4096 -EncryptionProviderName "Microsoft Strong Cryptographic Provider" -EncryptionKeyLength 4096
97
+
98
+ ``` powershell
99
+ $params = @{
100
+ ServiceAccountName = "CONTOSO\svcNDES"
101
+ ServiceAccountPassword = (Read-Host "Set user password" -AsSecureString)
102
+ CAConfig = "CAComputerName\CAName"
103
+ RAName = "Contoso-NDES-RA"
104
+ RACountry = "US"
105
+ RACompany = "Contoso"
106
+ SigningProviderName = "Microsoft Strong Cryptographic Provider"
107
+ SigningKeyLength = 4096
108
+ EncryptionProviderName = "Microsoft Strong Cryptographic Provider"
109
+ EncryptionKeyLength = 4096
110
+ }
111
+ Install-AdcsNetworkDeviceEnrollmentService @params
76
112
```
77
113
78
- This command installs the NDES using a service account named " CONTOSO\svcNDES" that is a member of the local computer's IIS_USRS group.
79
- The command also specifies several non-default parameters.
114
+ This command installs the NDES using a service account named ` CONTOSO\svcNDES ` that is a member of
115
+ the local computer's ` IIS_USRS ` group. The command also specifies several non-default parameters.
80
116
81
117
## PARAMETERS
82
118
83
119
### -ApplicationPoolIdentity
84
- Indicates that the cmdlet the identity that the Network Device Enrollment Service (NDES) uses when communicating with the certification authority (CA).
85
- This parameter is only valid when NDES is using a remote CA.
86
- If the CA is local, the application pool identity account cannot be used.
120
+
121
+ Indicates the identity that the Network Device Enrollment Service (NDES) uses when communicating
122
+ with the certification authority (CA). This parameter is only valid when NDES is using
123
+ a remote CA. If the CA is local, the application pool identity account cannot be used.
87
124
88
125
``` yaml
89
126
Type : SwitchParameter
@@ -98,9 +135,10 @@ Accept wildcard characters: False
98
135
` ` `
99
136
100
137
### -CAConfig
101
- Specifies remote certification authority (CA) that the Network Device Enrollment Service uses.
102
- This parameter is mandatory when used within the *ApplicationPoolIdentity* parameter.
103
- Do not use this parameter when a local CA is installed.
138
+
139
+ Specifies the remote certification authority (CA) that the Network Device Enrollment Service uses. This
140
+ parameter is mandatory when used within the **ApplicationPoolIdentity** parameter. Do not use this
141
+ parameter when a local CA is installed.
104
142
105
143
` ` ` yaml
106
144
Type : String
@@ -115,6 +153,7 @@ Accept wildcard characters: False
115
153
` ` `
116
154
117
155
### -Confirm
156
+
118
157
Prompts you for confirmation before running the cmdlet.
119
158
120
159
` ` ` yaml
@@ -130,12 +169,13 @@ Accept wildcard characters: False
130
169
` ` `
131
170
132
171
### -Credential
133
- Specifies a **PSCredential** object that this cmdlet use to connect to the NDES role service.
134
- To obtain a credential object, use the **Get-Credential** cmdlet.
135
- For more information, type ` Get-Help Get-Credential`.
136
- The NDES must be installed on a server that is a member of an Active Directory Domain Services (AD DS) domain.
137
- If NDES is configured to use a Standalone CA, then an account that is a member of the local Administrators on the CA is required.
138
- If NDES is installed to use an Enterprise CA, then using an account that is a member of Domain Admins group is required.
172
+
173
+ Specifies a **PSCredential** object that this cmdlet uses to connect to the NDES role service. To
174
+ obtain a credential object, use the ` Get-Credential` cmdlet. For more information, type
175
+ ` Get-Help Get-Credential` . The NDES must be installed on a server that is a member of an Active
176
+ Directory Domain Services (AD DS) domain. If NDES is configured to use a Standalone CA, then an
177
+ account that is a member of the local Administrators on the CA is required. If NDES is installed to
178
+ use an Enterprise CA, then using an account that is a member of Domain Admins group is required.
139
179
140
180
` ` ` yaml
141
181
Type: PSCredential
@@ -150,6 +190,7 @@ Accept wildcard characters: False
150
190
` ` `
151
191
152
192
# ## -EncryptionKeyLength
193
+
153
194
Specifies the encryption key length.
154
195
This option is not valid if you use existing keys during installation.
155
196
@@ -166,7 +207,9 @@ Accept wildcard characters: False
166
207
` ` `
167
208
168
209
# ## -EncryptionProviderName
169
- Specifies the name of the encryption provider, such as the name of cryptographic service provider (CSP).
210
+
211
+ Specifies the name of the encryption provider, such as the name of cryptographic service provider
212
+ (CSP).
170
213
171
214
` ` ` yaml
172
215
Type: String
@@ -181,6 +224,7 @@ Accept wildcard characters: False
181
224
` ` `
182
225
183
226
# ## -Force
227
+
184
228
Forces the command to run without asking for user confirmation.
185
229
186
230
` ` ` yaml
@@ -196,6 +240,7 @@ Accept wildcard characters: False
196
240
` ` `
197
241
198
242
# ## -RACity
243
+
199
244
Specifies the city of the registration authority.
200
245
201
246
` ` ` yaml
@@ -211,6 +256,7 @@ Accept wildcard characters: False
211
256
` ` `
212
257
213
258
# ## -RACompany
259
+
214
260
Specifies the organization or company that the registration authority represents.
215
261
216
262
` ` ` yaml
@@ -226,6 +272,7 @@ Accept wildcard characters: False
226
272
` ` `
227
273
228
274
# ## -RACountry
275
+
229
276
Specifies the country of the registration authority.
230
277
231
278
` ` ` yaml
@@ -241,6 +288,7 @@ Accept wildcard characters: False
241
288
` ` `
242
289
243
290
# ## -RADepartment
291
+
244
292
Specifies the department of the registration authority.
245
293
246
294
` ` ` yaml
@@ -256,6 +304,7 @@ Accept wildcard characters: False
256
304
` ` `
257
305
258
306
# ## -RAEmail
307
+
259
308
Specifies the email address of the registration authority.
260
309
261
310
` ` ` yaml
@@ -271,6 +320,7 @@ Accept wildcard characters: False
271
320
` ` `
272
321
273
322
# ## -RAName
323
+
274
324
Specifies the name of the NDES registration authority.
275
325
276
326
` ` ` yaml
@@ -286,7 +336,9 @@ Accept wildcard characters: False
286
336
` ` `
287
337
288
338
# ## -RAState
289
- Specifies the state or province (geographical political boundary), if applicable, of the registration authority.
339
+
340
+ Specifies the state or province (geographical political boundary), if applicable, of the
341
+ registration authority.
290
342
291
343
` ` ` yaml
292
344
Type: String
@@ -301,6 +353,7 @@ Accept wildcard characters: False
301
353
` ` `
302
354
303
355
# ## -ServiceAccountName
356
+
304
357
Specifies the name of the account that is used by the Network Device Enrollment Service.
305
358
306
359
` ` ` yaml
@@ -316,6 +369,7 @@ Accept wildcard characters: False
316
369
` ` `
317
370
318
371
# ## -ServiceAccountPassword
372
+
319
373
Specifies the password of the service account that is used by the Network Device Enrollment Service.
320
374
321
375
` ` ` yaml
@@ -331,6 +385,7 @@ Accept wildcard characters: False
331
385
` ` `
332
386
333
387
# ## -SigningKeyLength
388
+
334
389
Specifies the signing key length.
335
390
336
391
` ` ` yaml
@@ -346,6 +401,7 @@ Accept wildcard characters: False
346
401
` ` `
347
402
348
403
# ## -SigningProviderName
404
+
349
405
Specifies the name of the signing device.
350
406
351
407
` ` ` yaml
@@ -361,6 +417,7 @@ Accept wildcard characters: False
361
417
` ` `
362
418
363
419
# ## -WhatIf
420
+
364
421
Shows what would happen if the cmdlet runs. The cmdlet is not run.
365
422
366
423
` ` ` yaml
@@ -376,7 +433,11 @@ Accept wildcard characters: False
376
433
` ` `
377
434
378
435
# ## CommonParameters
379
- This cmdlet supports the common parameters : -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
436
+
437
+ This cmdlet supports the common parameters : -Debug, -ErrorAction, -ErrorVariable,
438
+ -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
439
+ -WarningAction, and -WarningVariable. For more information, see
440
+ [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
380
441
381
442
# # INPUTS
382
443
@@ -395,14 +456,14 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
395
456
# ## Microsoft.CertificateServices.Deployment.Common.NDES.NetworkDeviceEnrollmentServiceResult
396
457
397
458
# # NOTES
398
- * Ensure you run Windows PowerShell as an administrator. You can use the *Force* parameter to bypass the prompt for confirmation.
399
- To see parameters, run the following command : ` Install-AdcsNetworkDeviceEnrollmentService -?`
400
459
401
-
460
+ - Ensure you run Windows PowerShell as an administrator. You can use the **Force** parameter to bypass
461
+ the prompt for confirmation. To see parameters, run the following command :
462
+
463
+ ` Install-AdcsNetworkDeviceEnrollmentService -?`
402
464
403
465
# # RELATED LINKS
404
466
405
467
[Uninstall-AdcsNetworkDeviceEnrollmentService](./Uninstall-AdcsNetworkDeviceEnrollmentService.md)
406
468
407
469
[Get-Credential](https://go.microsoft.com/fwlink/?LinkID=293936)
408
-
0 commit comments