lprun.exe accept nuget licenses for "NT AUTHORITY\SYSTEM" account

Hello,

i got a windows service running under "NT AUTHORITY\SYSTEM" account, this service calls lprun.exe to run some maintenance linqpad scripts.

The problem I am having, is that some of these scripts uses nuget packages under user agreement, and i have not way accept for that user account, and the lprun process gets stuck until it timeout.

Sample exception message:

System.Exception: Downloading NuGet package Microsoft.Exchange.WebServices and dependencies from https://api.nuget.org/v3/index.json
Warning: package Microsoft.Exchange.WebServices is subject to license https://github.com/OfficeDev/ews-managed-api/blob/master/license.txt


Any workaround/fix i can use?

Thanks, regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!