We are trying to install patches from Ansible on Windows servers and it used to work fine well, but recently few changes happened from AD or GPO which is causing the below error while executing the Windows updates script from Ansible.
"Failed to get token for NT AUTHORITY\SYSTEM required for become as a service account or an account without a password" ---> System.Exception: Failed to get token for NT AUTHORITY\SYSTEM required for become as a service account or an account without a password
"msg": "internal error: failed to become user 'SYSTEM': Exception calling \"CreateProcessAsUser\" with \"9\" argument(s): \"Failed to get token for NT AUTHORITY\SYSTEM required for become as a service account or an account without a password\""
Strangely we were able to do on few servers and few not, so not able to find what settings actually causing the issue.