You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Group membership updates use permissive modify by default. This suppresses an error when adding a member that is already member of the group.
151
+
When this parameter is used, an error "The specified account name is already a member of the group" is returned.
152
+
153
+
This parameter is available in Windows Server 2019 with the September 2020 Updates.
154
+
155
+
156
+
```yaml
157
+
Type: SwitchParameter
158
+
Parameter Sets: (All)
159
+
Aliases:
160
+
161
+
Required: False
162
+
Position: Named
163
+
Default value: False
164
+
Accept pipeline input: False
165
+
Accept wildcard characters: False
166
+
```
167
+
149
168
### -Identity
150
169
Specifies an Active Directory group object by providing one of the following values.
151
170
The identifier in parentheses is the Lightweight Directory Access Protocol (LDAP) display name for the attribute.
152
171
The acceptable values for this parameter are:
153
172
154
173
- A distinguished name
155
-
- A GUID (objectGUID)
156
-
- A security identifier (objectSid)
174
+
- A GUID (objectGUID)
175
+
- A security identifier (objectSid)
157
176
- A Security Account Manager account name (sAMAccountName)
158
177
159
178
The cmdlet searches the default naming context or partition to find the object.
@@ -164,7 +183,7 @@ This parameter can also get this object through the pipeline or you can set this
164
183
```yaml
165
184
Type: ADGroup
166
185
Parameter Sets: (All)
167
-
Aliases:
186
+
Aliases:
168
187
169
188
Required: True
170
189
Position: 0
@@ -179,7 +198,7 @@ Specifies a Time to Live (TTL) for the new group members.
179
198
```yaml
180
199
Type: TimeSpan
181
200
Parameter Sets: (All)
182
-
Aliases:
201
+
Aliases:
183
202
184
203
Required: False
185
204
Position: Named
@@ -194,9 +213,9 @@ To identify each object, use one of the following property values.
194
213
Note: The identifier in parentheses is the LDAP display name.
195
214
The acceptable values for this parameter are:
196
215
197
-
- Distinguished name
198
-
- GUID (objectGUID)
199
-
- Security identifier (objectSid)
216
+
- Distinguished name
217
+
- GUID (objectGUID)
218
+
- Security identifier (objectSid)
200
219
- SAM account name (sAMAccountName)
201
220
202
221
You can also provide objects to this parameter directly.
@@ -224,7 +243,7 @@ You cannot pass objects through the pipeline to this parameter.
224
243
```yaml
225
244
Type: ADPrincipal[]
226
245
Parameter Sets: (All)
227
-
Aliases:
246
+
Aliases:
228
247
229
248
Required: True
230
249
Position: 1
@@ -242,24 +261,24 @@ In many cases, a default value is used for the *Partition* parameter if no value
242
261
The rules for determining the default value are given below.
243
262
Note that rules listed first are evaluated first and once a default value can be determined, no further rules are evaluated.
244
263
245
-
In Active Directory Domain Services (AD DS) environments, a default value for *Partition* is set in the following cases:
264
+
In Active Directory Domain Services (AD DS) environments, a default value for *Partition* is set in the following cases:
246
265
247
266
- If the *Identity* parameter is set to a distinguished name, the default value of *Partition* is automatically generated from this distinguished name.
248
-
- If running cmdlets from an Active Directory provider drive, the default value of *Partition* is automatically generated from the current path in the drive.
267
+
- If running cmdlets from an Active Directory provider drive, the default value of *Partition* is automatically generated from the current path in the drive.
249
268
- If none of the previous cases apply, the default value of *Partition* is set to the default partition or naming context of the target domain.
250
269
251
270
In Active Directory Lightweight Directory Services (AD LDS) environments, a default value for *Partition* is set in the following cases:
252
271
253
-
- If the *Identity* parameter is set to a distinguished name, the default value of *Partition* is automatically generated from this distinguished name.
254
-
- If running cmdlets from an Active Directory provider drive, the default value of *Partition* is automatically generated from the current path in the drive.
272
+
- If the *Identity* parameter is set to a distinguished name, the default value of *Partition* is automatically generated from this distinguished name.
273
+
- If running cmdlets from an Active Directory provider drive, the default value of *Partition* is automatically generated from the current path in the drive.
255
274
- If the target AD LDS instance has a default naming context, the default value of *Partition* is set to the default naming context.
256
-
To specify a default naming context for an AD LDS environment, set the **msDS-defaultNamingContext** property of the Active Directory directory service agent object (**nTDSDSA**) for the AD LDS instance.
275
+
To specify a default naming context for an AD LDS environment, set the **msDS-defaultNamingContext** property of the Active Directory directory service agent object (**nTDSDSA**) for the AD LDS instance.
257
276
- If none of the previous cases apply, the *Partition* parameter does not take a default value.
258
277
259
278
```yaml
260
279
Type: String
261
280
Parameter Sets: (All)
262
-
Aliases:
281
+
Aliases:
263
282
264
283
Required: False
265
284
Position: Named
@@ -275,7 +294,7 @@ By default, this cmdlet does not generate any output.
Specifies the Active Directory Domain Services (AD DS) instance to connect to, by providing one of the following values for a corresponding domain name or directory server.
289
308
The service may be any of the following: Active Directory Lightweight Domain Services (AD LDS), AD DS, or Active Directory snapshot instance.
290
309
291
-
Specify the AD DS instance in one of the following ways:
310
+
Specify the AD DS instance in one of the following ways:
292
311
293
312
Domain name values:
294
313
295
314
- Fully qualified domain name
296
315
- NetBIOS name
297
316
298
-
Directory server values:
317
+
Directory server values:
299
318
300
319
- Fully qualified directory server name
301
320
- NetBIOS name
@@ -310,7 +329,7 @@ The default value for this parameter is determined by one of the following metho
0 commit comments