?
Solved

enable autorun

Posted on 2008-10-24
3
Medium Priority
?
655 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

777 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