Hi all. I could really use some help adjusting this script please? I found an amazing script to search the windows registy, by Bill Stewart PowerShell Gallery | Search-Registry.ps1 0.0.5
It takes variables from the command line, and it works just great, eg .\search-registry.ps1 -matchdata -startkey HKLM:\ -pattern “whatever”
So writing a batch script to run this with the variables is simple enough, even for me.
What I really need though is to specifiy those variables in the script itself. I’ve tried myself but whatever I do just seems to break it.
Can anyone help please?