become with runas method not work on some of my machines

hi there,

I have a playbook which set runas as the become method, as I run it with AWX it wont work on some machine to run any task which has become set to yes. and it shows error as bellow. but if I comment “become_method” or set it to “sudo”!!! even though I am on windows machine, it runs on both groups of my machine.

I checked the web method to activated secondary logon(as regarded to error 1326) on failed machine but it did not help.

Does anybody has an Idea? thank you in advance.

Ausnahme beim Aufrufen von “CreateProcessAsUser” mit 9 Argument(en): “Failed to logon .\developer (Der Benutzername oder das Kennwort ist falsch, Win32ErrorCode 1326 - 0x0000052E)”

In Zeile:103 Zeichen:5

  • $result = [Ansible.Become.BecomeUtil]::CreateProcessAsUser($usern …

  • 
    
  • CategoryInfo : NotSpecified: (:slight_smile: , MethodInvocationException

  • FullyQualifiedErrorId : Win32Exception

ScriptStackTrace:

bei , : Zeile 103

bei , : Zeile 137

bei , : Zeile 11

System.Management.Automation.MethodInvocationException: Ausnahme beim Aufrufen von “CreateProcessAsUser” mit 9 Argument(en): "Failed to logon .\developer (Der Benutzername oder das Kennwort is…

The error represents ERROR_LOGON_FAILURE which according to https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d means

Logon failure: Unknown user name or bad password.

You will want to be 100% sure you have the correct username/password set for the become user/pass set. I see you are trying to log on as ‘.\developer’, try just ‘developer’ or ‘HOSTNAME\developer’.

Thanks for the reply,
yes I am sure that the user and pass are correct. as with the same credential other machine work. I also tried with hostname\developer but no luck!