You first must install .NET framework: V4.0.30319,Feature Enable

PowerShell and the Server Manager console stop working when you uninstall the .NET Framework from Server Manager.
Some programs won’t work properly — for example, PowerShell and Server Manager.

If you uninstall the .NET Framework 4.6 feature from this console, you won’t be able to install it again, because the Server Manager console will no longer open.

I try installing .net package, Error Message: .Net 4 already a port of this operating system.. but it is currently turned off. to enable .net fremawork 4, use turn windows features on or..

The error: To run this application, you first must install one of the following versions of the .net framework: v4.0.30319

This application requires one of the following versions of the .NET framework: V4.0.30319

How to solve?

Again, You should enable .Net Feature.

Please, firstly mount the Windows Server 2019,2022 Operating System ISO

Open Terminal(Administrators Mode)

When you apply the command, you will see .Net Version Features is Disabled. So, you should enable this feature.

dism /online /get-features /format:table
dism /online /enable-feature /featurename:NetFx4 /all 

Error: 0x800f081f → Kaynak dosyası eksik (need ISO file.).
The source files could not be found.

(Letter D: is mounted iso file directory )

dism /online /enable-feature /featurename:NetFx4 /all /LimitAccess /Source:D:\sources\sxs

Display .Net Version Release

Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' | Get-ItemPropertyValue -Name Release
Release DWORD Value.NET Framework Version
5280404.8
4618084.7.2
4613084.7.1
4607984.7
3948024.6.2
3932954.6.1