0

I have a task schedule in windows server 2012 R2 that triggers a batch file to generate a random password for an account in drupal and then apply that password with drush using the command "drush user:password user password". Everything runs fine if a user is logged in on windows but the drush command part fails if a user is not logged in. The password does generate but it does not get changed.

I have drush, composer and php on the system environment variable path and still won't work unless some user is logged in into windows.

Any idea of how i can make this work, the server goes down for maintenance regularly and it is a pain having to log in every time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.