Skip to content

Instantly share code, notes, and snippets.

@confused-Techie
Created March 21, 2024 22:22
Show Gist options
  • Save confused-Techie/71dc47413e7aa13f126b419f3f49fbe7 to your computer and use it in GitHub Desktop.
Save confused-Techie/71dc47413e7aa13f126b419f3f49fbe7 to your computer and use it in GitHub Desktop.
One way to modify the Windows Registry safely that's language agnostic

Making Registry Edits on Windows via Pulsar

Best way seems to be via a .reg file. Which allows for a simple syntax of declaring Registry Changes, which can then be run via the command line.

Resouces

Example File:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\0949b555-c22c-56b7-873a-a960bdefa81f]

"ShortcutName"="Pulsar Cool"
; Comment Comment

Then run via:

reg.exe import test.reg

Then we can check current values via:

Get-ItemPropertyValue "HKCU:\Software\0949b555-c22c-56b7-873a-a960bdefa81f" "ShortcutName"

If this is all done for HKCU or Current User only values, then no admin perms are ever required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment