WUApiInterop.IUpdateSearcher.GetTotalHistoryCount() throws System.UnauthorizedAccessException when running as service

0

I have changed our configuration such that our buildagent-service is running as a domain service user 'build-agent', this is to configure network ressource access for the user to be more strict.

when running the service with the domain user, a unittest calling WUApiInterop.IUpdateSearcher.GetTotalHistoryCount() throws System.UnauthorizedAccessException

System.UnauthorizedAccessException : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at WUApiInterop.IUpdateSearcher.GetTotalHistoryCount()

If I reconfigure the service to run as 'Local System', the access denied problem is resolved.

Is there something I can configure for the domain user to be allowed interacting with the WUApiInterop ??

It usually works for a 'desktop' user.

.net
windows
agent
asked on Stack Overflow Sep 10, 2018 by buildcomplete

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0