I'd like to know how to write a powershell script to enable inbound firewall on windows 7 for all File & Printer Sharing rules where profile is private.
I have already written scripts to insert additiontal rules, but don't know how to update built in rules.
Not for Windows 7 sorry, but for anyone else that find this thread like me for looking for a way to enable file shares on a Windows Core server.
Set-NetFirewallRule -Name 'FPS-SMB-In-TCP' -Enabled True
got by looking at the results of
Get-NetFirewallRule | Where-Object { $_.Name -like '*FPS*' } | Select-Object Name,Enabled,Direction
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With