-
Notifications
You must be signed in to change notification settings - Fork 83
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
[Computer] Join AD domain succeeds but it throws error "The user name or password is incorrect" #413
Comments
Can you verify that it throws the same error if you use the fully qualified domain name instead of NetBios name, eg [email protected] |
@johlju I confirm it works fine if the username is in format |
Safer solution might be to pickup username with ` ` |
Problem description
Scenario: VM is in a workgroup and wants to join an AD domain for the 1st time:
It successfully joins the AD domain, but DSC throws the following error:
Exception calling "FindOne" with "0" argument(s): "The user name or password is incorrect."
This is thrown by
DirectorySearcher.FindOne()
infunction Get-ADSIComputer
:ComputerManagementDsc/source/DSCResources/DSC_Computer/DSC_Computer.psm1
Line 745 in fcff2e0
Verbose logs
DSC configuration
Suggested solution
I did not investigate the exact reason of the error message "The user name or password is incorrect.", but credentials are valid since VM joins the AD domain successfully.
A possible simple workaround would be to add a try catch:
Operating system the target node is running
PowerShell version and build the target node is running
ComputerManagementDsc version
The text was updated successfully, but these errors were encountered: