Remote Management is enabled by default in Windows Server 2022. If it was disabled in your environment, you can enable it by running the ConfigureSMRemoting command. This allows you remotely administer your server with Server Manager.
Configure-SMRemoting -Enable
Enable-PSRemoting -force
winrm quickconfig
Winrm quickconfig will analyze and automatically configure the WinRM service for you.
It also configures listeners for HTTP and HTTPS, and ensures that the Windows firewall is allowing HTTP and HTTPS traffic inbound:
Configure Windows Firewall:
Get-NetFirewallRule *remote* | Format-table
Set-NetFirewallRule –Name "RemoteFwAdmin-In-TCP" –Enabled True
Set-NetFirewallRule –Name "RemoteFwAdmin-RPCSS-In-TCP" –Enabled True