Software to enable/disable autorun

Discuss anything related to portable freeware here.
Post Reply
Message
Author
User avatar
Lupo73
Posts: 1011
Joined: Mon Mar 19, 2007 8:55 am
Location: Italy
Contact:

Software to enable/disable autorun

#1 Post by Lupo73 » Thu Jan 21, 2010 3:07 am

Someone know a simple software to enable/disable autorun on various windows systems?
Otherwise we could consider to create it..because searching online I can't find a simple way to do it without manually work on registry..and could be useful for many users.
Lupo PenSuite: all-in-one and completely free selection of portable programs and games.
DropIt: personal assistant to automatically manage your files.
ArcThemALL!: application to multi-archive your files and folders.

User avatar
Cornflower
Posts: 174
Joined: Fri Aug 31, 2007 7:58 am
Location: Canada's capital

Re: Software to enable/disable autorun

#2 Post by Cornflower » Thu Jan 21, 2010 4:36 am

Many ways. Here is what I think is one of the easiest, and is found here on TPFC

TweakUI (http://www.portablefreeware.com/index.php?id=497)
Click on My Computer, AutoPlay (synonym ofr Autorun), and undo the tick for any drive letters you do not want to allow autoruns.

I have used it for my XP and Vista Systems. I cannot vouch for Windows 7.

Further thought. I just did a RegFromApp, and the settings go to HKey_Current_User--at first glance there are no non-user-specific usernames, and so are login/specific. As I don't jump logins that often, it is not a big issue, but the real answer is that after it is done for one username, another utility or login script may be desired to be employed to transfer it to the other usernames and using a policy to add it to whomever logs in.

User avatar
Lupo73
Posts: 1011
Joined: Mon Mar 19, 2007 8:55 am
Location: Italy
Contact:

Re: Software to enable/disable autorun

#3 Post by Lupo73 » Thu Jan 21, 2010 5:06 am

I'll try it.. anyway I'm considering the idea of creating a tool that only do it (even if actually I don't know how to do it).. with a very simple interface.
Lupo PenSuite: all-in-one and completely free selection of portable programs and games.
DropIt: personal assistant to automatically manage your files.
ArcThemALL!: application to multi-archive your files and folders.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: Software to enable/disable autorun

#4 Post by guinness » Thu Jan 21, 2010 5:33 am

Here's a start :)

http://www.computerperformance.co.uk/vi ... utorun.htm and a simple example http://www.autoitscript.com/forum/index ... opic=92360, though it's not my script! In Windows 7 it's alot easier to disable AutoPlay! But an app would help!
Added 179 Applications: Portable

User avatar
Cornflower
Posts: 174
Joined: Fri Aug 31, 2007 7:58 am
Location: Canada's capital

Re: Software to enable/disable autorun

#5 Post by Cornflower » Thu Jan 21, 2010 6:03 am

Not to get too technical here, but I have it figured out, as algorithm, and someone can create the small single-purpose app, if one does not yet exist.
It is binary math using teh AND logical function that determines the drives where AutoRun is allowed.

Using RegFromApp and TweakUI, the registry key (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,
item NoDriveAutoRun is changed. It is a 4-byte Binary (hex) setting.

To disable all Drives, change the setting to "FF FF FF 03" Nircmd can do this via
nircmd regsetval binary "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" "NoDriveAutoRun" "ff ff ff 03"
( I believe you use nircmd from your earlier posts on other topics)

For any other combination, you have to do some work and a bit of binary logic. Each drive letter alters one of the 3 FF's in the binary above.
e.g. G: is BF FF FF 03 H: 7F FF FF 03, and I: is FF FE FF 03
G in binary is 10111111 11111111 ...
H is 01111111 11111111 ...
so G and H together become G AND H or 00111111 ... or 3F FF FF 03

All the rest can work. So if I were to (I will not have time this week, at least until Sunday) to write a mini program to do this, I would find out the binary for each drive letter, get the allow/disallow combo from whatever source or from a UI, do the AND of the Allowed drive letters, and then plunk it into the above registry key.

I hope this helps. I am not much of a programmer (no patience with programming languages, but am an old time tweaker.

User avatar
joby_toss
Posts: 2902
Joined: Sat Feb 09, 2008 9:57 am
Location: Romania
Contact:

Re: Software to enable/disable autorun

#6 Post by joby_toss » Thu Jan 21, 2010 6:17 am

Lupo73 wrote:I'll try it.. anyway I'm considering the idea of creating a tool that only do it (even if actually I don't know how to do it).. with a very simple interface.
I understand that you want to keep it simple, but if you do it, it would be nice to incorporate a small tool to allow the easy-creation of [autorun.inf] files for customized mediums.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: Software to enable/disable autorun

#7 Post by guinness » Thu Jan 21, 2010 6:45 am

@Cornflower, excellent with your RegKeys and an AutoIt GUI with checkboxes it's done!
Added 179 Applications: Portable

User avatar
Lupo73
Posts: 1011
Joined: Mon Mar 19, 2007 8:55 am
Location: Italy
Contact:

Re: Software to enable/disable autorun

#8 Post by Lupo73 » Thu Jan 21, 2010 7:47 am

We could study in various systems what parameters are changed (because I read that it is different for each win version) and than we could try to do something in autoit..
So are opened proposal to how design it, what features implement and go on.. :wink:
Lupo PenSuite: all-in-one and completely free selection of portable programs and games.
DropIt: personal assistant to automatically manage your files.
ArcThemALL!: application to multi-archive your files and folders.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: Software to enable/disable autorun

#9 Post by guinness » Thu Feb 18, 2010 9:51 am

I found this: http://www.uwe-sieber.de/drivetools_e.h ... unSettings, I will add if it's popular here!
Added 179 Applications: Portable

User avatar
Lupo73
Posts: 1011
Joined: Mon Mar 19, 2007 8:55 am
Location: Italy
Contact:

Re: Software to enable/disable autorun

#10 Post by Lupo73 » Thu Feb 18, 2010 2:46 pm

It seems to be a very good program. I have contacted the author to have some more info and to know if he would like to eventually receive advices to improve it. Thanks for the link :wink:
Lupo PenSuite: all-in-one and completely free selection of portable programs and games.
DropIt: personal assistant to automatically manage your files.
ArcThemALL!: application to multi-archive your files and folders.

User avatar
webfork
Posts: 9520
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: Software to enable/disable autorun

#11 Post by webfork » Fri Feb 19, 2010 6:25 am

Simply because this thread came up again, I thought I'd point out two other programs not mentioned that will disable autorun.
The obvious advantage of using either one of these programs versus a program specifically for disabling autorun is is the wealth of other Windows annoyances they can turn off.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: Software to enable/disable autorun

#12 Post by guinness » Sun Feb 21, 2010 2:45 am

But I thought with those programs you suggest its literally just on off switch for AutoRun, you can't be specific with Drive Letters!
Added 179 Applications: Portable

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: Software to enable/disable autorun

#13 Post by guinness » Sun Feb 21, 2010 2:50 am

Added 179 Applications: Portable

User avatar
webfork
Posts: 9520
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: Software to enable/disable autorun

#14 Post by webfork » Tue Feb 23, 2010 2:57 pm

> But I thought with those programs you suggest its literally just on off switch for AutoRun, you can't be specific with Drive Letters!

You are right, guinness. I didn't see that. Both programs enable or disable it for the entire system.

Post Reply