Improved PowerShell code and removed unnecessary registry modification #28
+2,007
−2,271
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's New
Implemented lots of best practices such as using full cmdlet name in scripts instead of aliases.
Prevented unnecessary string interpolation for performance and security reasons.
Removed the unnecessary registry key modification related to preventing Standard user from changing network location in Firewall from public to private. Windows by default requires elevation for that change.
Used proper string validation for checking nulls, empty or whitespace.
Removed lots of unnecessary double or even triple new lines. The maximum empty lines between code is 1 now.
Fixed many typos in the comments and Readme documents.
Fixed Markdown readme formats by removing unnecessary empty lines that aren't even parsed by Markdown engine.
Merged 2 If statements because they were being used sequentially.
Used $null redirection instead of unnecessary variable assignment for JSON content tests.
Removed all of the unnecessary trailing whitespaces from the repo. They do not change any behavior of the code, text etc. whatsoever.