Firewall Rules Documentation on website
Im working in an environment with strict firewall policies, I'm struggling to find any information on ports used to execute commands such as install-module...
There are 3 basic elements for PowerShell remote access today:
1. WinRM, which is the basis for PowerShell remoting. There’s a good article here: https://blogs.technet.microsoft.com/christwe/2012/06/20/what-port-does-powershell-remoting-use/
2. HTTP/HTTPS – this is the vast majority of other remoting. Install-Module, PackageManagement, Invoke-RestMethod, etc. all go over standard internet ports, and generally default to HTTPS.
3. DCOM ports can specified for CIM-based cmdlets, but it is not the default. You can find out which modules support this option by searching for *.ps1xml in C:\Windows\System32\WindowsPowerShell\v1.0\. Again, that’s not the default.
Hope this resolves the question.