-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update New-ADServiceAccount.md #3889
Open
HerbertMauerer
wants to merge
1
commit into
MicrosoftDocs:main
Choose a base branch
from
HerbertMauerer:patch-10
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -157,8 +157,10 @@ Accept wildcard characters: False | |||||||||||
``` | ||||||||||||
|
||||||||||||
### -AccountPassword | ||||||||||||
Specifies a new password value for the service account. | ||||||||||||
This value is stored as an encrypted string. | ||||||||||||
Specifies a new password value for the service account. This value is stored as an encrypted string. | ||||||||||||
|
||||||||||||
##Note: | ||||||||||||
This parameter is only valid with MSA accounts. For GMSA the password is managed automatically. | ||||||||||||
|
||||||||||||
The following conditions apply based on the manner in which the password parameter is used: | ||||||||||||
|
||||||||||||
|
@@ -527,6 +529,8 @@ Specifies the name of the object. | |||||||||||
This parameter sets the **Name** property of the Active Directory object. | ||||||||||||
The LDAP Display Name (**ldapDisplayName**) of this property is name. | ||||||||||||
|
||||||||||||
This name is used as sAMAccountName of the new managed service account. The rules for the parameter SamAccountName apply to this name. | ||||||||||||
|
||||||||||||
```yaml | ||||||||||||
Type: String | ||||||||||||
Parameter Sets: (All) | ||||||||||||
|
@@ -595,19 +599,9 @@ Note that rules listed first are evaluated first and once a default value can be | |||||||||||
|
||||||||||||
In AD DS environments, a default value for **Path** is set in the following cases: | ||||||||||||
|
||||||||||||
- If the cmdlet is run from an Active Directory PowerShell provider drive, the parameter is set to the current path of the provider drive. | ||||||||||||
- If the cmdlet has a default path, this is used. | ||||||||||||
For example: in **New-ADUser**, the **Path** parameter defaults to the Users container. | ||||||||||||
- If none of the previous cases apply, the default value of **Path** is set to the default partition or naming context of the target domain. | ||||||||||||
|
||||||||||||
In AD LDS environments, a default value for **Path** is set in the following cases: | ||||||||||||
|
||||||||||||
- If the cmdlet is run from an Active Directory PowerShell provider drive, the parameter is set to the current path of the provider drive. | ||||||||||||
- If the cmdlet has a default path, this is used. | ||||||||||||
For example: in **New-ADUser**, the **Path** parameter defaults to the Users container. | ||||||||||||
- If the target AD LDS instance has a default naming context, the default value of **Path** is set to the default naming context. | ||||||||||||
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. | ||||||||||||
- If none of the previous cases apply, the **Path** parameter does not take any default value. | ||||||||||||
- If the cmdlet is run from an Active Directory PowerShell provider drive, the parameter is set to the current naming context of the provider drive. | ||||||||||||
- If the `-server` parameter is used, the naming context is the default naming context of the server. | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
- The Path within the naming context defaults to the "Managed Service Accounts" container. | ||||||||||||
|
||||||||||||
Note: The Active Directory Provider cmdlets, such as **New-Item**, **Remove-Item**, **Remove-ItemProperty**, **Rename-Item**, and **Set-ItemProperty**, also contain a **Path** property. | ||||||||||||
However, for the provider cmdlets, the **Path** parameter identifies the path of the actual object and not the container as with the Active Directory cmdlets. | ||||||||||||
|
@@ -699,7 +693,9 @@ To be compatible with older operating systems, create a SAM account name that is | |||||||||||
This parameter sets the **SAMAccountName** for an account object. | ||||||||||||
The LDAP display name (**ldapDisplayName**) for this property is sAMAccountName. | ||||||||||||
|
||||||||||||
Note: If the specified **SAMAccountName** string does not end with a $ (dollar sign), one is appended if necessary. | ||||||||||||
## Notes: | ||||||||||||
- If the specified **SAMAccountName** string does not end with a $ (dollar sign), one is appended if necessary. | ||||||||||||
- The name needs to be unique in the forest as in some places the GMSA names are searched in the domain tree. | ||||||||||||
Comment on lines
+696
to
+698
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
|
||||||||||||
```yaml | ||||||||||||
Type: String | ||||||||||||
|
@@ -715,7 +711,7 @@ Accept wildcard characters: False | |||||||||||
|
||||||||||||
### -Server | ||||||||||||
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. | ||||||||||||
The service may be any of the following: Active Directory Lightweight Domain Services (AD LDS), AD DS, or Active Directory snapshot instance. | ||||||||||||
The service may be the following: AD DS. | ||||||||||||
|
||||||||||||
Domain name values: | ||||||||||||
|
||||||||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.