Solved

enable autorun

Posted on 2008-10-24
3
642 Views
Last Modified: 2010-04-21
vbs code that enable cd autorun for all types of files in vista. as in vista we have to set autorun condition individually for different formats.
0
Comment
Question by:ankur3020
  • 2
3 Comments
 

Author Comment

by:ankur3020
ID: 22801746
if u do not want to reply, then reply code that will enable autorun for setup files i.e exe alteast
0
 
LVL 19

Accepted Solution

by:
weellio earned 250 total points
ID: 22805712
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23778214.html

from robberbaron:
put this in a file  CO_ON.VBS
reg HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CDRom /v AutoRun /t REG_DWORD /d 1
this turns CD autorun on, wether currently disabled or not.
it is possible to test for current status but no point.
************************************

i would assume in order to do it for your other devices, you need only find the registry key..

the example above is for cdrom...look in the registry ans see if you have a key in a similar location for USB or the other devices you are curious about.

0
 

Author Closing Comment

by:ankur3020
ID: 31509553
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome to part one of a multi-part tutorial series, VBScript for Windows System Administrators.  The goal of this series is to teach non-programmers how to write useful VBS code to automate their environment, and perform tasks faster, and in a more…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now