Closed jugatsu closed 5 years ago
By default windows_service uses LocalSystem as a default user. So when service is restarting by default in starts with LocalSystem user as a result breaks WinRM service because this service is using NT AUTHORITY\NetworkService account.
windows_service
LocalSystem
WinRM
NT AUTHORITY\NetworkService
https://github.com/criteo-cookbooks/winrm-config/blob/master/recipes/service.rb#L47 https://github.com/criteo-cookbooks/winrm-config/blob/master/recipes/windows_service.rb#L23
By default
windows_service
usesLocalSystem
as a default user. So when service is restarting by default in starts withLocalSystem
user as a result breaksWinRM
service because this service is usingNT AUTHORITY\NetworkService
account.https://github.com/criteo-cookbooks/winrm-config/blob/master/recipes/service.rb#L47 https://github.com/criteo-cookbooks/winrm-config/blob/master/recipes/windows_service.rb#L23