Forum Discussion

Intuneme's avatar
Intuneme
Copper Contributor
May 15, 2024
Solved

Installing .Net 8.0 via Intune Using Winget

I am trying to get .NET 8.0 installed on user machines via a PowerShell script via Intune. I upload the following script. I have tested locally on a machine and works well, but fails when sending thr...
  • Jordi_Koenderink's avatar
    May 17, 2024

    To automatically accept the agreements, you can add the and --accept-source-agreements and --accept-package-agreements parameters to your Winget command. So something like this:

     

    winget install --silent --exact --accept-source-agreements --accept-package-agreements Microsoft.DotNet.Runtime.8

     

    Please note that these parameters will only work if the agreements have not changed since they were last accepted—at least, that would make sense to me. If they have changed, you may still be prompted to accept them again.

     

    I hope this helps!

Resources