simeononsecurity / Windows-Optimize-Debloat

Optimize and debloat Windows 10 and Windows 11 deployments according to best practices for maximum performance and privacy. The ultimate script for enhancing your Windows experience.
https://simeononsecurity.com/github/windows-optimize-debloat/
MIT License
262 stars 22 forks source link

Use double quotes everywhere to stay consistent #4

Closed couleurm closed 1 year ago

couleurm commented 1 year ago

This matters to me because I'm parsing it's AST, I'll update this with more context over how I'm using this script later (bump this if i dont!)

couleurm commented 1 year ago

I'm just bad with the AST, my bad (found a solution)

simeononsecurity commented 1 year ago

These are pretty simple changes. Is there an issue you were running into?

couleurm commented 1 year ago

yeah I was parsing the AST by looking at every Start-Job scriptblock, and made up the function name from the -Name param, which I Where-Object'd only to have double quotes, but some did not have double quotes and it messed with my script.

I changed what it looked for and these simple changes were not needed anymore