Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- SRC https://blogs.msdn.microsoft.com/timomta/2016/11/04/how-do-i-open-ports-with-powershell/
- Elevated : yes
- O/P http://pix.toile-libre.org/upload/original/1545263543.png
- #>
- #Syntax
- New-NetFirewallRule -DisplayName 'HTTP(S) Inbound' -Profile @('Domain', 'Private') -Direction Inbound -Action Allow -Protocol TCP -LocalPort @('80', '443')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement