⚐ Note: For Windows Server 2022, the .NET Framework Version 4.8 is already installed.
1. Check the current version of the Framework on the server.
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name Version -ErrorAction SilentlyContinue | Select PSChildName, Version
2. Download and install the .NET Runtime Frameeork 4.8