How to Enable Disable Windows Firewall with UI CMD and PowerShell
Please subscribe to my channel ⬆️ and like this video ↗️
.
CMD Commands Used:
netsh advfirewall set domainprofile state off
netsh advfirewall set privateprofile state off
netsh advfirewall set publicprofile state off
netsh advfirewall set allprofiles state off
netsh advfirewall set allprofiles state on
.
PowerShell Commands Used:
Set-NetFirewallProfile -Profile Domain -Enabled False
Set-NetFirewallProfile -Profile Private -Enabled False
Set-NetFirewallProfile -Profile Public -Enabled False
Set-NetFirewallProfile -Profile Domain,Private,Public -Enabled True
Set-NetFirewallProfile -Profile Domain,Private,Public -Enabled False
.
Whether you are a novice home user or experienced technician if you found this video helpful feel free to bookmark for future use or save the link in your knowledge base, wiki, confluence or ticket. Lets Ninja fix IT! 💪
.
Note: These guides are not intended to guarantee resolution on any issues, warnings, or errors you are experiencing with your infrastructure. A strong technical background is recommended in, but not limited to, server administration, Window OS, networking, Office 365, cmd line, powershell and general MSP best practices. Always export the current configuration, confirm backup solutions are up to date, make a backup\snapshot\checkpoint before making any changes. Do not make any irreversible changes or deletion events with out performing due diligence.
Hashtags
--------------
#windows #window10 #windows11 #Microsoft #enable #disable #firewall #controlpanel #CMD #powershell #powershellscripting #script #scripting