open Command Prompt as Administrator mode (press windows key, type cmd, right click run as administrator).
following command to download the .NET installer
curl -o dotnet-installer.exe https://dot.net/v1/dotnet-install.ps1
run the following command to install .NET:
dotnet-installer.exe -Shared
follow the prompts to complete the installation. Once finished, .NET should be installed on your Windows 11 machine.