BlockFolderWindowsFirewall

0.0.3

This script will block all EXEs in a specified folder in Windows Firewall. Optionally you can specify the -Recurse switch to block all EXEs in a specified folder and all subfolders.

To unblock all EXEs in a specified folder, use the -UnblockInstead switch. Optionally you can specify the -Recurse switch to unblock all EXEs in a specified folder and all subfolders.

Be
This script will block all EXEs in a specified folder in Windows Firewall. Optionally you can specify the -Recurse switch to block all EXEs in a specified folder and all subfolders.

To unblock all EXEs in a specified folder, use the -UnblockInstead switch. Optionally you can specify the -Recurse switch to unblock all EXEs in a specified folder and all subfolders.

Be careful when using this script, as it will block all EXEs in a specified folder and all subfolders. This can cause issues with applications that rely on EXEs in the specified folder and subfolders.

If you specify "C:\" as the path, it will block all EXEs on the C drive. If you specify "C:\Folder" as the path, it will block all EXEs in the "C:\Folder" folder.
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name BlockFolderWindowsFirewall -RequiredVersion 0.0.3

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • asherto

Tags

PowerShell Windows exe block firewall folder directory recursive

Dependencies

This script has no dependencies.

Release Notes

[Version 0.0.1] - Initial Release.
[Version 0.0.2] - Added recurse option.
[Version 0.0.3] - Updated code signing certificate.

FileList

Version History

Version Downloads Last updated
1.0.2 390 2/26/2024
1.0.1 220 6/23/2023
1.0.0 9 6/23/2023
0.0.3 (current version) 63 5/19/2023
0.0.2 10 5/19/2023