All posts by neutrinus

Beat Caveng, Developer bei A-Enterprise GmbH. Blog Author zu den Themen, Python und Open Source. Tutorials zu Python Problemlösungen und Shell Scripts.

Disable Windows Firewall with PowerShell

Easily turn off Windows Firewall with netsh or in the PowerShell

There are still situations where it is necessary to disable the Windows Firewall. Windows Powershell supports Firewall disable command, where the service does not need to be stopped or disabled. On Windows Server, you can disable the firewall from the console using netsh commands. Windows Server 2012 or later also allows the Set-NetFirewallProfile PowerShell cmdlet to run.

Turn off the Firewall with Windows PowerShell

To do this, open Windows PowerShell as an administrator and run the following line:

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

Reactivating the Windows Defender Firewall requires -Enable True instead of False at the end.

Disable Firewall with the netsh command

Open a command prompt with administrative privileges and insert the following command:

netsh advfirewall set allprofiles state off

This example retrieves all of the firewall rules in the active store, which is a collection of all of the policy stores that apply to the computer. Running this cmdlet without specifying the policy store retrieves the persistent store.

PS C:\>Get-NetFirewallRule -PolicyStore ActiveStore

Example in Powershell to retrieves all of the Windows Firewall if it’s disable or not. The rules scoped to the public profile.

PS C:\>Get-NetFirewallProfile -Name Public | Get-NetFirewallRule

Description

The Get-NetFirewallRule cmdlet returns the instances of firewall rules that match the search parameters from the user. See the New-NetFirewallRule cmdlet for Windows Powershell Firewall disable for more information.

This cmdlet returns one or more Powershell Firewall rules by specifying the Name parameter (default), the DisplayName parameter, rule properties, or by associated filters or objects. The queried rules can be placed into variables and piped to other cmdlets for further modifications or monitoring.

Microsoft Edge Pin Web Site as App

How to Install a Web Site as an App in Microsoft Edge

Microsoft Edge Browser provide the feature to install this site as an app, web sites can not only be saved as favorites, but web pages can be installed as an app. The apps can then be pinned to the Start menu or taskbar like other applications.

Microsoft Edge Browser

To do this, open Microsoft Edge Browser and go to the website, which you usually add as a bookmark among the favorites, i.e. https://unblog.ch

After the web site is open in the Edge Browser, go to the settings by pressing the <Alt> + F buttons or by clicking on the three dots in the top right corner.

Choose Apps – Install this site as an app.

Click Install app.

With open the URL edge://apps/ in Microsoft Edge you can get the app management where the installed apps can be found, these can be started from here or remove the saved apps from here.

The newly installed app can now be found via Start and All Apps.

Pin the web site to taskbar

With a right click above the new app, it can be pinned to the Start menu or in the taskbar.

Start – Right Click – More – Pin to Taskbar

The app installed with Microsoft Edge is now in the taskbar.

Windows 10 Taskbar