Reputation: 27
I am trying to install .NET Framework 4.8.1 using Powershell script in Windows Server 2022 Datacenter. Can I install using Chocolatey (https://chocolatey.org/install.ps1). Please guide me with Powershell .ps1 script to install .NET Framework 4.8.1 in Windows Server 2022 Datacenter.
Please note manual download of the package/.exe is not allowed in our environment.
Upvotes: 0
Views: 628
Reputation: 1
https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net481-offline-installer you can download and install with paramerts:
NDP481-x86-x64-AllOS-ENU.exe /q /norestart
The parameters can be found out
NDP481-x86-x64-AllOS-ENU.exe /?
powershell
start-Process -ArgumentList "/q /norestart" -NoNewWindow -wait NDP481-x86-x64-AllOS-ENU.exe
you can download and install the program from the SMB network directory, but you should remember that you may need to reboot
Upvotes: 0