Commit Graph

27 Commits

Author SHA1 Message Date
Paul
e764c995de Small documentation error in the SYNOPSIS 2023-09-08 23:46:34 +02:00
Paul
b9deb748b0 Refactor and Enhance Firewall Script
- Replaced `$Profile` with `$FirewallProfile` to avoid conflict with built-in PowerShell variable.
- Introduced parameters for firewall rule direction (`$Direction`) and profile (`$FirewallProfile`).
- Removed redundant elevation using `Start-Process` and retained `#Requires -RunAsAdministrator`.
- Simplified path handling using `Convert-Path` and `-Filter` parameter of `Get-ChildItem`.
- Streamlined the loop for adding firewall rules with a direct `foreach`.
- Enhanced error handling for better user feedback and interaction.

This refactor improves readability, flexibility, and reduces potential for errors in the script.
2023-09-08 23:43:15 +02:00
Markus Fleschutz
fa9d43b715 Improve the .Example section 2023-08-06 21:35:36 +02:00
Markus Fleschutz
c1317242a8 Update the comment based header 2022-09-06 21:42:04 +02:00
Markus Fleschutz
04738077fe Improve the error message line 2022-04-13 12:06:32 +02:00
Markus Fleschutz
c112524c6f Update the comment header 2022-01-29 12:47:46 +01:00
Markus Fleschutz
27bd366394 Update the comment based help text 2021-10-12 21:51:51 +02:00
Markus Fleschutz
79497e5e00 Update synopsis and description 2021-10-04 21:29:23 +02:00
Markus Fleschutz
a1ec7f0183 Add example output 2021-10-04 17:42:06 +02:00
Markus Fleschutz
b653133853 Add UTF-8 BOM 2021-09-27 10:38:12 +02:00
Markus Fleschutz
4c2cc6033d Add comment to exit 0 2021-09-27 10:09:45 +02:00
Markus Fleschutz
643aeb782e Update description 2021-09-24 08:57:08 +02:00
Markus Fleschutz
bf8ddfbe0b Update the error line 2021-09-16 20:19:10 +02:00
Markus Fleschutz
e10261351c Update the comment-based help 2021-08-29 17:50:03 +02:00
Markus
233bb64a17 Change to UTF8-BOM encoding 2021-08-26 10:46:12 +02:00
Markus Fleschutz
f6dd2dc878 Improve the metadata header 2021-08-03 15:53:57 +02:00
Markus Fleschutz
e85b2a5bd5 Improve the comment-based section 2021-07-13 19:03:30 +02:00
Markus Fleschutz
8947cbed1f Enhance the error message 2021-05-02 21:30:48 +02:00
Markus Fleschutz
450869a593 Remove the #!/usr/bin/pwsh line 2021-04-21 19:53:52 +02:00
Markus Fleschutz
154a753707 Omit the ./ in the syntax metadata 2021-04-07 15:17:49 +02:00
Markus Fleschutz
009949ee76 Change to #!/usr/bin/pwsh 2021-04-07 11:53:57 +02:00
Markus Fleschutz
6efc805a7d Replace tabs by spaces in meta header 2021-03-22 20:10:18 +01:00
Markus Fleschutz
cda05d0c9b Improved error handling 2021-02-16 10:03:20 +01:00
Markus Fleschutz
60eb59b52a Improved the scripts 2021-02-10 19:25:48 +01:00
Markus Fleschutz
f7eca6274c Changed to #!/bin/powershell 2021-02-09 19:30:45 +01:00
Markus Fleschutz
8c8ec05c16 Improved add-firewall-rules.ps1 2021-02-01 08:25:03 +01:00
Markus Fleschutz
9a30e78a82 Added add-firewall-rules.ps1 2021-01-28 15:02:16 +01:00