|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Mondsreitersmann
Join Date: Jul 1999
Location: Skingrad
Posts: 8,781
|
Hullo,
I was wondering if there's a way to make a script or a batch file, or something that disables Windows' Auto Run feature for all devices but the optical drives. It'd be great if it worked on all versions of the OS from XP to 7. Anybody? TIA
__________________
Darum still, füg' ich mich, wie Gott es will. Nun, so will ich wacker streiten, und sollt' ich den Tod erleiden, stirbt ein braver Reitersmann. |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Looks like some registry magic is involved:
Enable or disable Autorun (Autoplay) function for specific devices in Windows - Windows Valley
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#3 |
|
Mondsreitersmann
Join Date: Jul 1999
Location: Skingrad
Posts: 8,781
|
Is there a way to group all those edits into a single batch file? I know one can add/delete/change registry keys via the command line, all I want is to have one file I can have in my tools USB flash drive that I can just execute on the machines I have to work on.
|
|
|
|
|
|
#4 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Code:
@echo off
REM create the reg file
(
ECHO Windows Registry Editor Version 5.00
ECHO.
ECHO [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
ECHO "StatusUpdateInterval"=dword:0000000a
ECHO "StatusUpdateEnabled"=dword:00000001
ECHO.
ECHO.
) >> C:\regedit.reg
REM execute the reg file
REGEDIT /S C:\regedit.reg
Or, if you already have the separate .reg files, use the REGEDIT command to execute them. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|