<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gHacks technology news &#187; devcon</title>
	<atom:link href="http://www.ghacks.net/tag/devcon/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 23:31:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Turn Off Computer Hardware With A Single Click</title>
		<link>http://www.ghacks.net/2009/05/30/turn-off-computer-hardware-with-a-single-click/</link>
		<comments>http://www.ghacks.net/2009/05/30/turn-off-computer-hardware-with-a-single-click/#comments</comments>
		<pubDate>Sat, 30 May 2009 14:26:03 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[computer hardware]]></category>
		<category><![CDATA[devcon]]></category>
		<category><![CDATA[device-manager]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[turn off computer hardware]]></category>
		<category><![CDATA[windows software]]></category>
		<category><![CDATA[windows tips]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/2009/05/30/turn-off-computer-hardware-with-a-single-click/</guid>
		<description><![CDATA[Rarst inspired me to take a closer look at the command line utility devcon which has been created by Microsoft. Devcon is basically a command line version of the Windows Device Manager. We recently published an energy saving article that contained a tip to disable computer hardware to save power which is especially useful for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rarst.net/script/devcon/">Rarst</a> inspired me to take a closer look at the command line utility devcon which has been created by Microsoft. Devcon is basically a command line version of the Windows Device Manager. We recently published an energy saving article that contained a tip to disable computer hardware to save power which is especially useful for mobile computer systems like laptops or netbooks.</p>
<p>It is possible to write a simple batch script that can turn computer hardware off. Might be a handy for users who connect their mobile computer to a power source and use it on the road as well. They would simply turn off the unnecessary computer hardware on the road and turn it on again once it is connected to a power source again.</p>
<p><span id="more-13179"></span>The creation does not require programming skills but you need to know a bit about the computer hardware installed on your system. Not all hardware should be disabled, possibilities include</p>
<ul>
<li>Audio Devices</li>
<li>Network Adapters</li>
<li>Wireless Networking Adapters</li>
<li>CD, DVD and Blu-Ray drives</li>
<li>Floppy drives</li>
<li>webcams, card readers and other peripherals</li>
</ul>
<p>You need three commands to work with devcon. </p>
<ul>
<li>devcon find</li>
<li>devcon disable</li>
<li>devcon enable</li>
</ul>
<p>Start by downloading <a href="http://support.microsoft.com/kb/311272">devcon</a> from the official Microsoft website. Unpack it to a directory of your choice. It might be a good idea to put it into a directory that is listed in the system path of the operating system, e.g. /system32.</p>
<p>Open the Windows command line with [Windows R], [cmd], [enter]. </p>
<p>Enter <strong>devcon find *</strong> to get a listing of all hardware devices. This can be a long list, you can use the following command to find a specific device (the command is case sensitive): </p>
<p><code>devcon find * | find "computer hardware identifier"</code></p>
<p>To find all Creative devices one could enter</p>
<p><code>devcon find * | find "Creative"</code></p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/05/computer_hardware-500x251.jpg" alt="computer hardware" title="computer hardware" width="500" height="251" class="alignnone size-medium wp-image-13178" /></p>
<p>The device in the screenshot above would be the Creative Soundblaster X-FI sound card. To disable that sound card one would use the following command</p>
<p><code>devcon disable PCI\VEN_1102</code></p>
<p>It is enough to add the unique identifier for the hardware device. Here are some tips to make the most out of the find command:</p>
<p><strong>Find all PCI devices</strong></p>
<p><code>devcon find * | find "PCI"</code></p>
<p><strong>Find all USB devices</strong></p>
<p><code>devcon find * | find "USB"</code></p>
<p>All that needs to be done now is to collect the unique identifiers for all computer hardware devices that should be turned off at times.</p>
<p>Create a new text document on the computer, name it disable.bat. Right-click it, select edit and add as many devcon disable lines to it as you want.</p>
<p><code>devcon disable PCI\VEN_1102<br />
devcon disable PCI\VEN_1317<br />
devcon disable USB\VID_1532</code></p>
<p>Now create a second batch file, name it enable.bat and use the following code (you basically exchange disable with enable)</p>
<p><code>devcon enable PCI\VEN_1102<br />
devcon enable PCI\VEN_1317<br />
devcon enable USB\VID_1532</code></p>
<p>That&#8217;s a basic script. You could add echo commands to it, combine the two scripts into one and beatify it further. The basic script on the other hand does what it is supposed to do.</p>

	Tags: <a href="http://www.ghacks.net/tag/computer-hardware/" title="computer hardware" rel="tag">computer hardware</a>, <a href="http://www.ghacks.net/tag/devcon/" title="devcon" rel="tag">devcon</a>, <a href="http://www.ghacks.net/tag/device-manager/" title="device-manager" rel="tag">device-manager</a>, <a href="http://www.ghacks.net/tag/laptop/" title="laptop" rel="tag">laptop</a>, <a href="http://www.ghacks.net/tag/netbook/" title="netbook" rel="tag">netbook</a>, <a href="http://www.ghacks.net/tag/script/" title="script" rel="tag">script</a>, <a href="http://www.ghacks.net/tag/turn-off-computer-hardware/" title="turn off computer hardware" rel="tag">turn off computer hardware</a>, <a href="http://www.ghacks.net/tag/windows-software/" title="windows software" rel="tag">windows software</a>, <a href="http://www.ghacks.net/tag/windows-tips/" title="windows tips" rel="tag">windows tips</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/06/18/disney-netpal/" title="Disney Netpal (June 18, 2009)">Disney Netpal</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/10/27/windows-device-manager-alternative/" title="Windows Device Manager Alternative (October 27, 2009)">Windows Device Manager Alternative</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/05/20/what-you-should-do-after-buying-a-new-computer-system/" title="What You Should Do After Buying A New Computer System (May 20, 2009)">What You Should Do After Buying A New Computer System</a> (18)</li>
	<li><a href="http://www.ghacks.net/2009/09/15/web-browser-have-impact-on-battery-life/" title="Web Browser Have Impact On Battery Life (September 15, 2009)">Web Browser Have Impact On Battery Life</a> (1)</li>
	<li><a href="http://www.ghacks.net/2007/12/12/use-favorites-to-access-folders-faster-2/" title="Use Favorites to access Folders faster (December 12, 2007)">Use Favorites to access Folders faster</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/05/30/turn-off-computer-hardware-with-a-single-click/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
