By default, remoting will use WMI for communications using ports 5985 and 5986
If for some reason, you cant use WMI, say server is in DMZ. You can specify to use HTTP for remoting instead of WMI, which will use ports 80 and 443.
To use these listeners, WinRM needs to be configured to listen on ports 80 and 443 using the WinRM command or group policy. Once enabled, remoting works as normal.
How do you turn ON remoting in older machines (older than windows server 2012)?
Remoting is enabled by default on Windows 2012 and above. Older versions of windows need to have remoting enabled on the server.
On the machine which will receive commands, run Enable-PSRemoting
One could also push out the enable switch via GPO, this method can be a quick and easy way to enable remoting on all servers within the Active Directory domain.