Closed Obegg closed 3 days ago
If youve never made windows scripts you wont understand but things can get really buggy... using reg add saves an extra line of ps code or more and creating a reg file is needed sometimes as certain value types dont work well when converted to code.
using reg add saves an extra line of ps code or more
True.
creating a reg file is needed sometimes as certain value types dont work well when converted to code.
Never experienced it, I don't think that's true (from my experience)
powershell has lots of issues applying and forcing reg keys never any issues with pipeline through cmd
reg add reg delete or cmd.exe reg add
if you write enough scripts you would understand there is a method behind the madness
when i started this guide i was just using powershell syntax for regedit it sux and always bugs out with certain things
I'm not sure why things like
reg add
exists on this project, here's an example: https://github.com/fr33thytweaks/Ultimate-Windows-Optimization-Guide/blob/11f80fdb98fec74b2e342c2e1825b5556bb790e0/Allow%20Scripts.cmd#L28if we are using PowerShell we can use something like:
All across the project there are many repeated
reg add
and alike, such as creating a.reg
file with theSet-Content
command, example: https://github.com/fr33thytweaks/Ultimate-Windows-Optimization-Guide/blob/11f80fdb98fec74b2e342c2e1825b5556bb790e0/6%20Windows/1%20Start%20Menu%20Taskbar.ps1#L67-L136It's as if we are combining CMD commands with
.reg
files and with PowerShell comamnds, I find it a bit on the ugly side, while it's just an aesthetic and not actually impactful, I think it's important to at least mention it.