How to automate this reg delete process

B

bill

can I automate this procedure with a .REG file?

go to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB

Right click on that and click on "Permissions". In permissions click
on the check mark called "Allow" to the right of "Full Control".

delete this key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_1307&Pid_0169

I have a couple more to delete but if u show me how to set permissions
and delete this I can do the rest of them

I did this twice and the permissions didn't remain set from the first
time.


thx

bill
 
P

Pegasus \(MVP\)

can I automate this procedure with a .REG file?

go to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB

Right click on that and click on "Permissions". In permissions click
on the check mark called "Allow" to the right of "Full Control".

delete this key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_1307&Pid_0169

I have a couple more to delete but if u show me how to set permissions
and delete this I can do the rest of them

I did this twice and the permissions didn't remain set from the first
time.


thx

bill

You can do this in two ways:
a) With a macro program, e.g. with AutoIt, or
b) Subinacl.exe

I do not recommend method a) as I consider it to be too
unreliable.

Method b) would work but requires a fair effort to get
it going. Unless you have a large number of machines to
be treated, the manual process would be faster.

AFAIK, reg.exe and regedit.exe cannot change permissions.
 
B

bill

Thx - I am aware of this but was looking for this.

I guess the real question is

will this work without setting the permissions as I must do if I edit
it manually?


Right click on that and click on "Permissions". In permissions click
on the check mark called "Allow" to the right of "Full Control".
 
P

Pegasus \(MVP\)

I have nothing against AutoIt per see but I would not use it in
this case for two reasons:
a) Editing the registry is a delicate matter. Doing it blindly with
pre-recorded keystrokes makes it a dangerous process.
b) AutoIt (and other macro programs) can be tripped up by
unexpected events, e.g. a virus scanner or an Automatic
Update dialog popping up all of a sudden. It happens even
to humans when they hack away at the keyboard without
watching the screen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top