Jump to content

disable autorun for removable disk


RYU81

Recommended Posts


nakira, that is just a GUI for the key I've already given.

It is done like this start with 128 then add on the number relative to whichever of the below you wish to restrict from autorunning.

  • UNKNOWN » 1
    NO_ROOT_DIR » 2
    REMOVABLE (floppy disks and removable cartridges) » 4
    FIXED (hard disks) » 8
    REMOTE (network drives) » 16
    CDROM » 32
    RAMDISK » 64

To disable autorun on all drives for instance (128 + 1 + 2 + 4 + 8 + 16 + 32 + 64 = 255)

REG ADD HKCU/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f

All drives except CD-ROM (128 + 1 + 2 + 4 + 8 + 16 + 64 = 223)

REG ADD HKCU/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer /v NoDriveTypeAutoRun /t REG_DWORD /d 223 /f

etc.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...