Windows_user_privilege always shows up to date

When attempting to run the following code on Chef Client 15.10.12

windows_user_privilege 'domain\user' do
privilege %w(SeServiceLogonRight)
action :add

It always skips it with "up to date", but yet the account is not been added to the Logon As A Service right.

Any ideas?

It would appear that the ‘users’ property for that resource is not the name so it can’t be passed in as such.

‘users’ has to be passed in as an array within the resource.


I tried using the users property, but that appears to only be valid for newer versions on the chef client. My V15 said it was an invalid property