I'm trying to setup a number of dev servers using Chef. I need a Windows Service to run as a managed service account. I have the following in a recipe:
windows_service 'My Windows Service' do
action :create
display_name "My Windows Service"
service_name "MyWindowsService"
binary_path_name "c:\\Program Files\\MyWindowsService\\MyService.exe"
startup_type :automatic
delayed_start true
run_as_user "Domain\\MyGMSA$"
description "Describes my service"
end
This registers the service just fine, but it sets the logon to "Local System account". Is there something else that I need to specify to make it work?