New
#1
Import Reg File: cmd works - Reg\Regedit w/bat file doesn't work?
This is embarrassing but I've spent so many hours on it I feel I have no choice.
I'm not real keen with Win 7 yet and I've done this with earlier os's without this problem.
Can't figure out why it's not working here, and I see many others having similar questions.
OS = Win7 Pro 32 bit.
I'm used to keyboard\cmd prompt so it's not an issue for me, but I'm putting together a system
for a friend who isn't that 'cmd prompt savvy'.
I need to create simple batch files for deleting and importing reg value (hklm\software\xxxx\run).
The program I'm trying to manage has no way to prevent auto running within it's gui
so I have allow the user to do this manually.
It's a FW so it's important to be able to manage it for troubleshooting etc.
It can be temporarily disabled, but it's important to prevent it from auto running as well.
When I run either 'reg.exe import autorun.reg', noautorun.reg' OR 'regedit /s autorun.reg' etc.,
via command line from the folder the reg files are in, it works perfectly every time.
But no matter how I create the bat files, they run with no prompt, no error(s) and do nothing.
Even when run as admin.
Can someone please explain what I am missing here?
I've read in a very dated thread here where someone claimed it worked by adding:
'rundll32.exe USER32.DLL, UpdatePerUserSysetmParameters ,1 ,True'
but I don't recall ever having to do this with a simple reg file import or value deletion.
I realize that Mark R's Autoruns would do the trick, but I need it to be a one click solution,
so it's very simple for user.
Thanks very much for any help on this!