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 through Intune as a script.
# Install .NET 8.0 using Winget
winget install –silent –exact Microsoft.DotNet.Runtime.8
The problem is that if winget has not been used before on new install of windows, you have to “accept” this agreement about region of PC. It fails at this point. I attached the photo of what I get.
I need to figure out what needs to be added to script to automatically accept the agreement for region and silently install .NET 8.0.
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 through Intune as a script. # Install .NET 8.0 using Wingetwinget install –silent –exact Microsoft.DotNet.Runtime.8 The problem is that if winget has not been used before on new install of windows, you have to “accept” this agreement about region of PC. It fails at this point. I attached the photo of what I get.I need to figure out what needs to be added to script to automatically accept the agreement for region and silently install .NET 8.0. Read More