
To launch the program (such as portable versions of software, Silent Install versions, for example), we compress the file and run it directly in the compressed file. These methods only prevent the virus from automatically spreading to the computer through the function of automatically running program files, if you copy the virus file to your computer and then launch it, then you must use an anti-virus program. Step 5: Restart the machine or run the command “gupdate /force” in the Command Prompt window for the policy to be applied.Īt this point, the machine will no longer automatically run files in USB drives or external drives. Step 4: Double click Policy: Removable Disks: Deny Execute access, select Enable, Apply and OK. Step 3: Access the link Computer Configuration/Administrative Templates/System/Removable Storage Access. Step 2: Type gpedit.msc, Enter to access the Administration menu of policies on the system. You can follow the steps with Windows XP, but here’s an easier way. With these operating systems, there are already mechanisms in place to prevent drives from auto-starting, so it’s pretty simple.
Of course, Autorun files cannot run and spread viruses to your computer. plug-in USB drives) will not run the program files themselves. Step 7: Restart the machine or run the command “gupdate /force” in the window Command Prompt for the policy to be applied.įrom now on, only program files will be in the drives created in the Additional Rules just allowed to launch.