<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Flarn2006</id>
	<title>Bitcoin Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Flarn2006"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/Flarn2006"/>
	<updated>2026-04-25T13:21:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=64633</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=64633"/>
		<updated>2017-12-22T03:20:23Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: I doubt I have the private key for this address anymore&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows. In addition, any text surrounded by quotes is to be entered without quotes.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[CGMiner]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
==Using the Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
Next, we need to tell Windows to respond to these events. There are two tasks we need to program: one to start mining when the computer is locked, and one to stop mining when the computer is unlocked.&lt;br /&gt;
&lt;br /&gt;
===Start mining when the computer is locked===&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;taskschd.msc&amp;quot;.&lt;br /&gt;
# On the very right, select &amp;quot;Create Basic Task...&amp;quot; from the menu.&lt;br /&gt;
# Give it a name, such as &amp;quot;Start Bitcoin Mining&amp;quot;. What exactly you type here doesn&#039;t matter, as long as you remember what it is in case you need to change something later. Click Next.&lt;br /&gt;
# Select &amp;quot;When a specific event is logged&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Log&amp;quot;, select &amp;quot;Security&amp;quot;. For &amp;quot;Source&amp;quot;, select &amp;quot;Microsoft Windows security auditing.&amp;quot; For &amp;quot;Event ID&amp;quot;, type 4800. Click Next.&lt;br /&gt;
# Select &amp;quot;Start a program&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Program/script&amp;quot;, click &amp;quot;Browse...&amp;quot; and select cgminer.exe. (You do remember where you extracted it, right?)&lt;br /&gt;
# For &amp;quot;Add arguments (optional)&amp;quot;, type in the command line parameters. Make sure to add &amp;lt;code&amp;gt;--api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt; to the end.&lt;br /&gt;
#:If you&#039;re unfamiliar with cgminer, you can use the following template: &amp;lt;code&amp;gt;-o &#039;&#039;[pool server]&#039;&#039; -u &#039;&#039;[user/worker name]&#039;&#039; -p &#039;&#039;[password]&#039;&#039; --api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Next, and then Finish.&lt;br /&gt;
&lt;br /&gt;
===Stop mining when the computer is unlocked===&lt;br /&gt;
&lt;br /&gt;
To stop cgminer when the computer is unlocked is trickier than it might seem. On my computer (and likely others as well) simply killing the process causes the video driver to temporarily stop responding. This can cause other applications to crash, and it&#039;s also just annoying as you need to wait 10 seconds or more to use your computer. For obvious reasons, it would be VERY annoying to have this happen every time you unlock your computer. (Even if this exact problem doesn&#039;t occur, cgminer may need to &amp;quot;clean up&amp;quot; when it&#039;s done, so it&#039;s best to use this method anyway.)&lt;br /&gt;
&lt;br /&gt;
Luckily, cgminer provides an API to allow other applications to control it. All we need to do is send the command &amp;quot;quit&amp;quot; to the local computer on network port 4028. For this, we&#039;ll use a program called [http://joncraton.org/blog/46/netcat-for-windows netcat]. Download this, and extract &amp;quot;nc.exe&amp;quot; to your cgminer directory.&lt;br /&gt;
&lt;br /&gt;
Now we need to create two new files in this directory. Open Notepad, and type the word &amp;quot;quit&amp;quot;. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; press Enter afterwards. For some strange reason, cgminer doesn&#039;t accept commands ending in a newline character. This is why we need to create a file in the first place, rather than simply using the &amp;lt;code&amp;gt;echo&amp;lt;/code&amp;gt; command. Save the file to your cgminer directory as &amp;quot;quit.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Click File&amp;amp;rarr;New, and type the following:&lt;br /&gt;
&lt;br /&gt;
 @echo off&lt;br /&gt;
 nc 127.0.0.1 4028 &amp;lt; quit.txt&lt;br /&gt;
&lt;br /&gt;
Save the file in the same directory as &amp;quot;quit.bat&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now we need to schedule a new task. Do this the same way as you did before, with a few differences:&lt;br /&gt;
&lt;br /&gt;
* Type a different name (should be obvious)&lt;br /&gt;
* Instead of 4800, enter 4801 for the event ID.&lt;br /&gt;
* For &amp;quot;Program/script&amp;quot;, select the &amp;quot;quit.bat&amp;quot; you just created instead of &amp;quot;cgminer.exe&amp;quot;.&lt;br /&gt;
* Leave &amp;quot;Add arguments (optional)&amp;quot; blank, and select the cgminer directory for &amp;quot;Start in (optional)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==You&#039;re done!==&lt;br /&gt;
&lt;br /&gt;
Lock your computer (Windows+L), wait 15 seconds or so, and unlock it. While it&#039;s locked, you should hear your GPU fan start spinning. When you unlock your computer, you should see cgminer appear for a second, then exit.&lt;br /&gt;
&lt;br /&gt;
If it didn&#039;t work properly, leave a comment on [[Talk:{{PAGENAME}}|this article&#039;s talk page]], or send an email to [mailto:flarn2006@gmail.com flarn2006@gmail.com]. If it did, great!&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38510</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38510"/>
		<updated>2013-06-10T07:15:18Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: /* Stop mining when the computer is unlocked */ Replaced &amp;gt; with &amp;amp;rarr;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows. In addition, any text surrounded by quotes is to be entered without quotes.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
==Using the Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
Next, we need to tell Windows to respond to these events. There are two tasks we need to program: one to start mining when the computer is locked, and one to stop mining when the computer is unlocked.&lt;br /&gt;
&lt;br /&gt;
===Start mining when the computer is locked===&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;taskschd.msc&amp;quot;.&lt;br /&gt;
# On the very right, select &amp;quot;Create Basic Task...&amp;quot; from the menu.&lt;br /&gt;
# Give it a name, such as &amp;quot;Start Bitcoin Mining&amp;quot;. What exactly you type here doesn&#039;t matter, as long as you remember what it is in case you need to change something later. Click Next.&lt;br /&gt;
# Select &amp;quot;When a specific event is logged&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Log&amp;quot;, select &amp;quot;Security&amp;quot;. For &amp;quot;Source&amp;quot;, select &amp;quot;Microsoft Windows security auditing.&amp;quot; For &amp;quot;Event ID&amp;quot;, type 4800. Click Next.&lt;br /&gt;
# Select &amp;quot;Start a program&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Program/script&amp;quot;, click &amp;quot;Browse...&amp;quot; and select cgminer.exe. (You do remember where you extracted it, right?)&lt;br /&gt;
# For &amp;quot;Add arguments (optional)&amp;quot;, type in the command line parameters. Make sure to add &amp;lt;code&amp;gt;--api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt; to the end.&lt;br /&gt;
#:If you&#039;re unfamiliar with cgminer, you can use the following template: &amp;lt;code&amp;gt;-o &#039;&#039;[pool server]&#039;&#039; -u &#039;&#039;[user/worker name]&#039;&#039; -p &#039;&#039;[password]&#039;&#039; --api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Next, and then Finish.&lt;br /&gt;
&lt;br /&gt;
===Stop mining when the computer is unlocked===&lt;br /&gt;
&lt;br /&gt;
To stop cgminer when the computer is unlocked is trickier than it might seem. On my computer (and likely others as well) simply killing the process causes the video driver to temporarily stop responding. This can cause other applications to crash, and it&#039;s also just annoying as you need to wait 10 seconds or more to use your computer. For obvious reasons, it would be VERY annoying to have this happen every time you unlock your computer. (Even if this exact problem doesn&#039;t occur, cgminer may need to &amp;quot;clean up&amp;quot; when it&#039;s done, so it&#039;s best to use this method anyway.)&lt;br /&gt;
&lt;br /&gt;
Luckily, cgminer provides an API to allow other applications to control it. All we need to do is send the command &amp;quot;quit&amp;quot; to the local computer on network port 4028. For this, we&#039;ll use a program called [http://joncraton.org/blog/46/netcat-for-windows netcat]. Download this, and extract &amp;quot;nc.exe&amp;quot; to your cgminer directory.&lt;br /&gt;
&lt;br /&gt;
Now we need to create two new files in this directory. Open Notepad, and type the word &amp;quot;quit&amp;quot;. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; press Enter afterwards. For some strange reason, cgminer doesn&#039;t accept commands ending in a newline character. This is why we need to create a file in the first place, rather than simply using the &amp;lt;code&amp;gt;echo&amp;lt;/code&amp;gt; command. Save the file to your cgminer directory as &amp;quot;quit.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Click File&amp;amp;rarr;New, and type the following:&lt;br /&gt;
&lt;br /&gt;
 @echo off&lt;br /&gt;
 nc 127.0.0.1 4028 &amp;lt; quit.txt&lt;br /&gt;
&lt;br /&gt;
Save the file in the same directory as &amp;quot;quit.bat&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now we need to schedule a new task. Do this the same way as you did before, with a few differences:&lt;br /&gt;
&lt;br /&gt;
* Type a different name (should be obvious)&lt;br /&gt;
* Instead of 4800, enter 4801 for the event ID.&lt;br /&gt;
* For &amp;quot;Program/script&amp;quot;, select the &amp;quot;quit.bat&amp;quot; you just created instead of &amp;quot;cgminer.exe&amp;quot;.&lt;br /&gt;
* Leave &amp;quot;Add arguments (optional)&amp;quot; blank, and select the cgminer directory for &amp;quot;Start in (optional)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==You&#039;re done!==&lt;br /&gt;
&lt;br /&gt;
Lock your computer (Windows+L), wait 15 seconds or so, and unlock it. While it&#039;s locked, you should hear your GPU fan start spinning. When you unlock your computer, you should see cgminer appear for a second, then exit.&lt;br /&gt;
&lt;br /&gt;
If it didn&#039;t work properly, leave a comment on [[Talk:{{PAGENAME}}|this article&#039;s talk page]], or send an email to [mailto:flarn2006@gmail.com flarn2006@gmail.com]. If it did, great!&lt;br /&gt;
&lt;br /&gt;
If you want to thank me, my Bitcoin address is [bitcoin:14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP 14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP]. Send me some bitcoins if you want, in which case, thanks a lot!&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Mining&amp;diff=38171</id>
		<title>Mining</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Mining&amp;diff=38171"/>
		<updated>2013-05-31T00:11:23Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: /* See Also */ Added link to relevant tutorial&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- This page is designed to be short and simple! It should provide only a very brief explanation of things that have their own page and should link to other pages whenever possible. This page should serve as an entry point and a place to organize most of our mining articles. Thank You! (-Atheros) --&amp;gt;&lt;br /&gt;
[[File:Quick-and-dirty-4x5970-cooling.jpg|thumb|right|A quick and dirty mining rig]]&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&#039;&#039;&#039;Mining&#039;&#039;&#039;, or generating, is the process of adding transaction records to Bitcoin&#039;s public ledger of past transactions. This ledger of past transactions is called the [[block chain]] as it is a chain of [[block|blocks]]. The block chain serves to [[Confirmation|confirm]] transactions to the rest of the network as having taken place. Bitcoin nodes use the block chain to distinguish legitimate Bitcoin transactions from attempts to respend coins that have already been spent elsewhere.&lt;br /&gt;
&lt;br /&gt;
Mining is intentionally designed to be resource-intensive and difficult so that the number of blocks found each day by miners remains steady. Individual [[blocks]] must contain a [[proof of work|proof of work]] to be considered valid. This proof of work is verified by other Bitcoin nodes each time they receive a block. &lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Bitcoin&#039;s public ledger (the &#039;block chain&#039;) was started on January 3rd, 2009 at 18:15 UTC presumably by [[Satoshi Nakamoto]]. The first block is known as the [[genesis block]]. The first transaction recorded in the first block was a single transaction paying the reward of 50 new bitcoins to its creator.&lt;br /&gt;
&lt;br /&gt;
Bitcoin mining is so called because it resembles the mining of other commodities: it requires exertion and it slowly makes new currency available at a rate that resembles the rate at which commodities like gold are mined from the ground. See [[Controlled Currency Supply]]. &lt;br /&gt;
&lt;br /&gt;
== Difficulty ==&lt;br /&gt;
=== The Computationally-Difficult Problem ===&lt;br /&gt;
Mining a block is difficult because the SHA-256 hash of a block&#039;s header must be lower than or equal to the [[Target|target]] in order for the block to be accepted by the network. This problem can be simplified for explanation purposes: The hash of a block must start with a certain number of zeros. The probability of calculating a hash that starts with many zeros is very low, therefore many attempts must be made. In order to generate a new hash each round, a [[Nonce|nonce]] is incremented. See [[Proof of work]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== The Difficulty Metric ===&lt;br /&gt;
The [[Difficulty|difficulty]] is the measure of how difficult it is to find a new block compared to the easiest it can ever be. It is recalculated every 2016 blocks to a value such that the previous 2016 blocks would have been generated in exactly two weeks had everyone been mining at this difficulty. This will yield, on average, one block every ten minutes. As more miners join, the rate of block creation will go up. As the rate of block generation goes up, the difficulty rises to compensate which will push the rate of block creation back down. Any blocks released by malicious miners that do not meet the required difficulty [[Target|target]] will simply be rejected by everyone on the network and thus will be worthless. &lt;br /&gt;
&lt;br /&gt;
=== Reward ===&lt;br /&gt;
When a block is discovered, the discoverer may award themselves a certain number of bitcoins, which is agreed-upon by everyone in the network. Currently this bounty is 25 bitcoins; this value will halve every 210,000 blocks. See [[Controlled Currency Supply]].&lt;br /&gt;
&lt;br /&gt;
Additionally, the miner is awarded the fees paid by users sending transactions. The fee is an incentive for the miner to include the transaction in their block. In the future, as the number of new bitcoins miners are allowed to create in each block dwindles, the fees will make up a much more important percentage of mining income.&lt;br /&gt;
&lt;br /&gt;
== Hardware ==&lt;br /&gt;
[[File:Usb-fpga module 1.15x-hs-800.jpg|thumb|right|FPGA Module]]&lt;br /&gt;
Users have used various types of hardware over time to mine blocks. Hardware specifications and performance statistics are detailed on the [[Mining Hardware Comparison]] page.&lt;br /&gt;
=== CPU Mining === &lt;br /&gt;
Early Bitcoin client versions allowed users to use their CPUs to mine. The advent of GPU mining made CPU mining financially unwise. The option was therefore removed from the Bitcoin client. &lt;br /&gt;
=== GPU Mining ===&lt;br /&gt;
GPU Mining is drastically faster and more efficient than CPU mining. See the main article: [[Why a GPU mines faster than a CPU]]. A variety of popular [[Mining rig|mining rigs]] have been documented.&lt;br /&gt;
=== FPGA Mining ===&lt;br /&gt;
FPGA mining is a very efficient and fast way to mine, comparable to GPU mining and drastically outperforming CPU mining. FPGAs typically consume very small amounts of power with relatively high hash ratings, making them more viable and efficient than GPU mining. See [[Mining Hardware Comparison]] for FPGA hardware specifications and statistics.&lt;br /&gt;
=== ASIC Mining ===&lt;br /&gt;
An application-specific integrated circuit, or &#039;&#039;ASIC&#039;&#039;, is a microchip designed and manufactured for a very specific purpose. ASICs designed for Bitcoin mining were first released in 2013 and (at the time of this writing) are in the hands of a very limited number of miners. For the amount of power they consume, they are expected to be vastly faster than all previous technologies and will likely make GPU mining financially unwise.&lt;br /&gt;
&lt;br /&gt;
== Pools ==&lt;br /&gt;
As mining a block became more and more difficult, individuals found that they were working for months without finding a block and receiving &#039;&#039;any&#039;&#039; reward for their mining efforts. Thus they started organizing themselves into [[Pooled mining|pools]] so that they could share rewards more evenly. See [[Pooled mining]] and [[Comparison of mining pools]].&lt;br /&gt;
[[Category:Mining]][[Category:Vocabulary]]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [http://codinginmysleep.com/bitcoin-mining-in-plain-english Bitcoin Mining in Plain English] by David Perry&lt;br /&gt;
* [[Automatically mine when computer is locked|Tutorial to automatically start mining when you lock your computer]]. (Windows 7)&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38170</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38170"/>
		<updated>2013-05-31T00:10:22Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: /* You&amp;#039;re done! */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows. In addition, any text surrounded by quotes is to be entered without quotes.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
==Using the Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
Next, we need to tell Windows to respond to these events. There are two tasks we need to program: one to start mining when the computer is locked, and one to stop mining when the computer is unlocked.&lt;br /&gt;
&lt;br /&gt;
===Start mining when the computer is locked===&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;taskschd.msc&amp;quot;.&lt;br /&gt;
# On the very right, select &amp;quot;Create Basic Task...&amp;quot; from the menu.&lt;br /&gt;
# Give it a name, such as &amp;quot;Start Bitcoin Mining&amp;quot;. What exactly you type here doesn&#039;t matter, as long as you remember what it is in case you need to change something later. Click Next.&lt;br /&gt;
# Select &amp;quot;When a specific event is logged&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Log&amp;quot;, select &amp;quot;Security&amp;quot;. For &amp;quot;Source&amp;quot;, select &amp;quot;Microsoft Windows security auditing.&amp;quot; For &amp;quot;Event ID&amp;quot;, type 4800. Click Next.&lt;br /&gt;
# Select &amp;quot;Start a program&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Program/script&amp;quot;, click &amp;quot;Browse...&amp;quot; and select cgminer.exe. (You do remember where you extracted it, right?)&lt;br /&gt;
# For &amp;quot;Add arguments (optional)&amp;quot;, type in the command line parameters. Make sure to add &amp;lt;code&amp;gt;--api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt; to the end.&lt;br /&gt;
#:If you&#039;re unfamiliar with cgminer, you can use the following template: &amp;lt;code&amp;gt;-o &#039;&#039;[pool server]&#039;&#039; -u &#039;&#039;[user/worker name]&#039;&#039; -p &#039;&#039;[password]&#039;&#039; --api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Next, and then Finish.&lt;br /&gt;
&lt;br /&gt;
===Stop mining when the computer is unlocked===&lt;br /&gt;
&lt;br /&gt;
To stop cgminer when the computer is unlocked is trickier than it might seem. On my computer (and likely others as well) simply killing the process causes the video driver to temporarily stop responding. This can cause other applications to crash, and it&#039;s also just annoying as you need to wait 10 seconds or more to use your computer. For obvious reasons, it would be VERY annoying to have this happen every time you unlock your computer. (Even if this exact problem doesn&#039;t occur, cgminer may need to &amp;quot;clean up&amp;quot; when it&#039;s done, so it&#039;s best to use this method anyway.)&lt;br /&gt;
&lt;br /&gt;
Luckily, cgminer provides an API to allow other applications to control it. All we need to do is send the command &amp;quot;quit&amp;quot; to the local computer on network port 4028. For this, we&#039;ll use a program called [http://joncraton.org/blog/46/netcat-for-windows netcat]. Download this, and extract &amp;quot;nc.exe&amp;quot; to your cgminer directory.&lt;br /&gt;
&lt;br /&gt;
Now we need to create two new files in this directory. Open Notepad, and type the word &amp;quot;quit&amp;quot;. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; press Enter afterwards. For some strange reason, cgminer doesn&#039;t accept commands ending in a newline character. This is why we need to create a file in the first place, rather than simply using the &amp;lt;code&amp;gt;echo&amp;lt;/code&amp;gt; command. Save the file to your cgminer directory as &amp;quot;quit.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Click File&amp;gt;New, and type the following:&lt;br /&gt;
&lt;br /&gt;
 @echo off&lt;br /&gt;
 nc 127.0.0.1 4028 &amp;lt; quit.txt&lt;br /&gt;
&lt;br /&gt;
Save the file in the same directory as &amp;quot;quit.bat&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now we need to schedule a new task. Do this the same way as you did before, with a few differences:&lt;br /&gt;
&lt;br /&gt;
* Type a different name (should be obvious)&lt;br /&gt;
* Instead of 4800, enter 4801 for the event ID.&lt;br /&gt;
* For &amp;quot;Program/script&amp;quot;, select the &amp;quot;quit.bat&amp;quot; you just created instead of &amp;quot;cgminer.exe&amp;quot;.&lt;br /&gt;
* Leave &amp;quot;Add arguments (optional)&amp;quot; blank, and select the cgminer directory for &amp;quot;Start in (optional)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==You&#039;re done!==&lt;br /&gt;
&lt;br /&gt;
Lock your computer (Windows+L), wait 15 seconds or so, and unlock it. While it&#039;s locked, you should hear your GPU fan start spinning. When you unlock your computer, you should see cgminer appear for a second, then exit.&lt;br /&gt;
&lt;br /&gt;
If it didn&#039;t work properly, leave a comment on [[Talk:{{PAGENAME}}|this article&#039;s talk page]], or send an email to [mailto:flarn2006@gmail.com flarn2006@gmail.com]. If it did, great!&lt;br /&gt;
&lt;br /&gt;
If you want to thank me, my Bitcoin address is [bitcoin:14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP 14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP]. Send me some bitcoins if you want, in which case, thanks a lot!&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=User:Automatically_mine_when_computer_is_locked&amp;diff=38169</id>
		<title>User:Automatically mine when computer is locked</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=User:Automatically_mine_when_computer_is_locked&amp;diff=38169"/>
		<updated>2013-05-31T00:09:50Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: Flarn2006 moved page User:Automatically mine when computer is locked to Automatically mine when computer is locked: Forgot to change namespace.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Automatically mine when computer is locked]]&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38168</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38168"/>
		<updated>2013-05-31T00:09:50Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: Flarn2006 moved page User:Automatically mine when computer is locked to Automatically mine when computer is locked: Forgot to change namespace.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows. In addition, any text surrounded by quotes is to be entered without quotes.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
==Using the Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
Next, we need to tell Windows to respond to these events. There are two tasks we need to program: one to start mining when the computer is locked, and one to stop mining when the computer is unlocked.&lt;br /&gt;
&lt;br /&gt;
===Start mining when the computer is locked===&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;taskschd.msc&amp;quot;.&lt;br /&gt;
# On the very right, select &amp;quot;Create Basic Task...&amp;quot; from the menu.&lt;br /&gt;
# Give it a name, such as &amp;quot;Start Bitcoin Mining&amp;quot;. What exactly you type here doesn&#039;t matter, as long as you remember what it is in case you need to change something later. Click Next.&lt;br /&gt;
# Select &amp;quot;When a specific event is logged&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Log&amp;quot;, select &amp;quot;Security&amp;quot;. For &amp;quot;Source&amp;quot;, select &amp;quot;Microsoft Windows security auditing.&amp;quot; For &amp;quot;Event ID&amp;quot;, type 4800. Click Next.&lt;br /&gt;
# Select &amp;quot;Start a program&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Program/script&amp;quot;, click &amp;quot;Browse...&amp;quot; and select cgminer.exe. (You do remember where you extracted it, right?)&lt;br /&gt;
# For &amp;quot;Add arguments (optional)&amp;quot;, type in the command line parameters. Make sure to add &amp;lt;code&amp;gt;--api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt; to the end.&lt;br /&gt;
#:If you&#039;re unfamiliar with cgminer, you can use the following template: &amp;lt;code&amp;gt;-o &#039;&#039;[pool server]&#039;&#039; -u &#039;&#039;[user/worker name]&#039;&#039; -p &#039;&#039;[password]&#039;&#039; --api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Next, and then Finish.&lt;br /&gt;
&lt;br /&gt;
===Stop mining when the computer is unlocked===&lt;br /&gt;
&lt;br /&gt;
To stop cgminer when the computer is unlocked is trickier than it might seem. On my computer (and likely others as well) simply killing the process causes the video driver to temporarily stop responding. This can cause other applications to crash, and it&#039;s also just annoying as you need to wait 10 seconds or more to use your computer. For obvious reasons, it would be VERY annoying to have this happen every time you unlock your computer. (Even if this exact problem doesn&#039;t occur, cgminer may need to &amp;quot;clean up&amp;quot; when it&#039;s done, so it&#039;s best to use this method anyway.)&lt;br /&gt;
&lt;br /&gt;
Luckily, cgminer provides an API to allow other applications to control it. All we need to do is send the command &amp;quot;quit&amp;quot; to the local computer on network port 4028. For this, we&#039;ll use a program called [http://joncraton.org/blog/46/netcat-for-windows netcat]. Download this, and extract &amp;quot;nc.exe&amp;quot; to your cgminer directory.&lt;br /&gt;
&lt;br /&gt;
Now we need to create two new files in this directory. Open Notepad, and type the word &amp;quot;quit&amp;quot;. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; press Enter afterwards. For some strange reason, cgminer doesn&#039;t accept commands ending in a newline character. This is why we need to create a file in the first place, rather than simply using the &amp;lt;code&amp;gt;echo&amp;lt;/code&amp;gt; command. Save the file to your cgminer directory as &amp;quot;quit.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Click File&amp;gt;New, and type the following:&lt;br /&gt;
&lt;br /&gt;
 @echo off&lt;br /&gt;
 nc 127.0.0.1 4028 &amp;lt; quit.txt&lt;br /&gt;
&lt;br /&gt;
Save the file in the same directory as &amp;quot;quit.bat&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now we need to schedule a new task. Do this the same way as you did before, with a few differences:&lt;br /&gt;
&lt;br /&gt;
* Type a different name (should be obvious)&lt;br /&gt;
* Instead of 4800, enter 4801 for the event ID.&lt;br /&gt;
* For &amp;quot;Program/script&amp;quot;, select the &amp;quot;quit.bat&amp;quot; you just created instead of &amp;quot;cgminer.exe&amp;quot;.&lt;br /&gt;
* Leave &amp;quot;Add arguments (optional)&amp;quot; blank, and select the cgminer directory for &amp;quot;Start in (optional)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==You&#039;re done!==&lt;br /&gt;
&lt;br /&gt;
Lock your computer (Windows+L), wait 15 seconds or so, and unlock it. While it&#039;s locked, you should hear your GPU fan start spinning. When you unlock your computer, you should see cgminer appear for a second, then exit.&lt;br /&gt;
&lt;br /&gt;
If it didn&#039;t work properly, leave a comment on [[Talk:{{PAGENAME}}|this article&#039;s talk page]]. If it did, great!&lt;br /&gt;
&lt;br /&gt;
If you want to thank me, my Bitcoin address is [bitcoin:14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP 14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP]. Send me some bitcoins if you want, in which case, thanks a lot!&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=User:Flarn2006/Sandbox&amp;diff=38167</id>
		<title>User:Flarn2006/Sandbox</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=User:Flarn2006/Sandbox&amp;diff=38167"/>
		<updated>2013-05-31T00:09:34Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: Flarn2006 moved page User:Flarn2006/Sandbox to User:Automatically mine when computer is locked: Page is complete.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[User:Automatically mine when computer is locked]]&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38166</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38166"/>
		<updated>2013-05-31T00:09:34Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: Flarn2006 moved page User:Flarn2006/Sandbox to User:Automatically mine when computer is locked: Page is complete.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows. In addition, any text surrounded by quotes is to be entered without quotes.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
==Using the Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
Next, we need to tell Windows to respond to these events. There are two tasks we need to program: one to start mining when the computer is locked, and one to stop mining when the computer is unlocked.&lt;br /&gt;
&lt;br /&gt;
===Start mining when the computer is locked===&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;taskschd.msc&amp;quot;.&lt;br /&gt;
# On the very right, select &amp;quot;Create Basic Task...&amp;quot; from the menu.&lt;br /&gt;
# Give it a name, such as &amp;quot;Start Bitcoin Mining&amp;quot;. What exactly you type here doesn&#039;t matter, as long as you remember what it is in case you need to change something later. Click Next.&lt;br /&gt;
# Select &amp;quot;When a specific event is logged&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Log&amp;quot;, select &amp;quot;Security&amp;quot;. For &amp;quot;Source&amp;quot;, select &amp;quot;Microsoft Windows security auditing.&amp;quot; For &amp;quot;Event ID&amp;quot;, type 4800. Click Next.&lt;br /&gt;
# Select &amp;quot;Start a program&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Program/script&amp;quot;, click &amp;quot;Browse...&amp;quot; and select cgminer.exe. (You do remember where you extracted it, right?)&lt;br /&gt;
# For &amp;quot;Add arguments (optional)&amp;quot;, type in the command line parameters. Make sure to add &amp;lt;code&amp;gt;--api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt; to the end.&lt;br /&gt;
#:If you&#039;re unfamiliar with cgminer, you can use the following template: &amp;lt;code&amp;gt;-o &#039;&#039;[pool server]&#039;&#039; -u &#039;&#039;[user/worker name]&#039;&#039; -p &#039;&#039;[password]&#039;&#039; --api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Next, and then Finish.&lt;br /&gt;
&lt;br /&gt;
===Stop mining when the computer is unlocked===&lt;br /&gt;
&lt;br /&gt;
To stop cgminer when the computer is unlocked is trickier than it might seem. On my computer (and likely others as well) simply killing the process causes the video driver to temporarily stop responding. This can cause other applications to crash, and it&#039;s also just annoying as you need to wait 10 seconds or more to use your computer. For obvious reasons, it would be VERY annoying to have this happen every time you unlock your computer. (Even if this exact problem doesn&#039;t occur, cgminer may need to &amp;quot;clean up&amp;quot; when it&#039;s done, so it&#039;s best to use this method anyway.)&lt;br /&gt;
&lt;br /&gt;
Luckily, cgminer provides an API to allow other applications to control it. All we need to do is send the command &amp;quot;quit&amp;quot; to the local computer on network port 4028. For this, we&#039;ll use a program called [http://joncraton.org/blog/46/netcat-for-windows netcat]. Download this, and extract &amp;quot;nc.exe&amp;quot; to your cgminer directory.&lt;br /&gt;
&lt;br /&gt;
Now we need to create two new files in this directory. Open Notepad, and type the word &amp;quot;quit&amp;quot;. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; press Enter afterwards. For some strange reason, cgminer doesn&#039;t accept commands ending in a newline character. This is why we need to create a file in the first place, rather than simply using the &amp;lt;code&amp;gt;echo&amp;lt;/code&amp;gt; command. Save the file to your cgminer directory as &amp;quot;quit.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Click File&amp;gt;New, and type the following:&lt;br /&gt;
&lt;br /&gt;
 @echo off&lt;br /&gt;
 nc 127.0.0.1 4028 &amp;lt; quit.txt&lt;br /&gt;
&lt;br /&gt;
Save the file in the same directory as &amp;quot;quit.bat&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now we need to schedule a new task. Do this the same way as you did before, with a few differences:&lt;br /&gt;
&lt;br /&gt;
* Type a different name (should be obvious)&lt;br /&gt;
* Instead of 4800, enter 4801 for the event ID.&lt;br /&gt;
* For &amp;quot;Program/script&amp;quot;, select the &amp;quot;quit.bat&amp;quot; you just created instead of &amp;quot;cgminer.exe&amp;quot;.&lt;br /&gt;
* Leave &amp;quot;Add arguments (optional)&amp;quot; blank, and select the cgminer directory for &amp;quot;Start in (optional)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==You&#039;re done!==&lt;br /&gt;
&lt;br /&gt;
Lock your computer (Windows+L), wait 15 seconds or so, and unlock it. While it&#039;s locked, you should hear your GPU fan start spinning. When you unlock your computer, you should see cgminer appear for a second, then exit.&lt;br /&gt;
&lt;br /&gt;
If it didn&#039;t work properly, leave a comment on [[Talk:{{PAGENAME}}|this article&#039;s talk page]]. If it did, great!&lt;br /&gt;
&lt;br /&gt;
If you want to thank me, my Bitcoin address is [bitcoin:14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP 14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP]. Send me some bitcoins if you want, in which case, thanks a lot!&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38165</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38165"/>
		<updated>2013-05-31T00:09:04Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: /* You&amp;#039;re done! */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows. In addition, any text surrounded by quotes is to be entered without quotes.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
==Using the Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
Next, we need to tell Windows to respond to these events. There are two tasks we need to program: one to start mining when the computer is locked, and one to stop mining when the computer is unlocked.&lt;br /&gt;
&lt;br /&gt;
===Start mining when the computer is locked===&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;taskschd.msc&amp;quot;.&lt;br /&gt;
# On the very right, select &amp;quot;Create Basic Task...&amp;quot; from the menu.&lt;br /&gt;
# Give it a name, such as &amp;quot;Start Bitcoin Mining&amp;quot;. What exactly you type here doesn&#039;t matter, as long as you remember what it is in case you need to change something later. Click Next.&lt;br /&gt;
# Select &amp;quot;When a specific event is logged&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Log&amp;quot;, select &amp;quot;Security&amp;quot;. For &amp;quot;Source&amp;quot;, select &amp;quot;Microsoft Windows security auditing.&amp;quot; For &amp;quot;Event ID&amp;quot;, type 4800. Click Next.&lt;br /&gt;
# Select &amp;quot;Start a program&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Program/script&amp;quot;, click &amp;quot;Browse...&amp;quot; and select cgminer.exe. (You do remember where you extracted it, right?)&lt;br /&gt;
# For &amp;quot;Add arguments (optional)&amp;quot;, type in the command line parameters. Make sure to add &amp;lt;code&amp;gt;--api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt; to the end.&lt;br /&gt;
#:If you&#039;re unfamiliar with cgminer, you can use the following template: &amp;lt;code&amp;gt;-o &#039;&#039;[pool server]&#039;&#039; -u &#039;&#039;[user/worker name]&#039;&#039; -p &#039;&#039;[password]&#039;&#039; --api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Next, and then Finish.&lt;br /&gt;
&lt;br /&gt;
===Stop mining when the computer is unlocked===&lt;br /&gt;
&lt;br /&gt;
To stop cgminer when the computer is unlocked is trickier than it might seem. On my computer (and likely others as well) simply killing the process causes the video driver to temporarily stop responding. This can cause other applications to crash, and it&#039;s also just annoying as you need to wait 10 seconds or more to use your computer. For obvious reasons, it would be VERY annoying to have this happen every time you unlock your computer. (Even if this exact problem doesn&#039;t occur, cgminer may need to &amp;quot;clean up&amp;quot; when it&#039;s done, so it&#039;s best to use this method anyway.)&lt;br /&gt;
&lt;br /&gt;
Luckily, cgminer provides an API to allow other applications to control it. All we need to do is send the command &amp;quot;quit&amp;quot; to the local computer on network port 4028. For this, we&#039;ll use a program called [http://joncraton.org/blog/46/netcat-for-windows netcat]. Download this, and extract &amp;quot;nc.exe&amp;quot; to your cgminer directory.&lt;br /&gt;
&lt;br /&gt;
Now we need to create two new files in this directory. Open Notepad, and type the word &amp;quot;quit&amp;quot;. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; press Enter afterwards. For some strange reason, cgminer doesn&#039;t accept commands ending in a newline character. This is why we need to create a file in the first place, rather than simply using the &amp;lt;code&amp;gt;echo&amp;lt;/code&amp;gt; command. Save the file to your cgminer directory as &amp;quot;quit.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Click File&amp;gt;New, and type the following:&lt;br /&gt;
&lt;br /&gt;
 @echo off&lt;br /&gt;
 nc 127.0.0.1 4028 &amp;lt; quit.txt&lt;br /&gt;
&lt;br /&gt;
Save the file in the same directory as &amp;quot;quit.bat&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now we need to schedule a new task. Do this the same way as you did before, with a few differences:&lt;br /&gt;
&lt;br /&gt;
* Type a different name (should be obvious)&lt;br /&gt;
* Instead of 4800, enter 4801 for the event ID.&lt;br /&gt;
* For &amp;quot;Program/script&amp;quot;, select the &amp;quot;quit.bat&amp;quot; you just created instead of &amp;quot;cgminer.exe&amp;quot;.&lt;br /&gt;
* Leave &amp;quot;Add arguments (optional)&amp;quot; blank, and select the cgminer directory for &amp;quot;Start in (optional)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==You&#039;re done!==&lt;br /&gt;
&lt;br /&gt;
Lock your computer (Windows+L), wait 15 seconds or so, and unlock it. While it&#039;s locked, you should hear your GPU fan start spinning. When you unlock your computer, you should see cgminer appear for a second, then exit.&lt;br /&gt;
&lt;br /&gt;
If it didn&#039;t work properly, leave a comment on [[Talk:{{PAGENAME}}|this article&#039;s talk page]]. If it did, great!&lt;br /&gt;
&lt;br /&gt;
If you want to thank me, my Bitcoin address is [bitcoin:14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP 14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP]. Send me some bitcoins if you want, in which case, thanks a lot!&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38164</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38164"/>
		<updated>2013-05-31T00:08:42Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: /* You&amp;#039;re done! */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows. In addition, any text surrounded by quotes is to be entered without quotes.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
==Using the Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
Next, we need to tell Windows to respond to these events. There are two tasks we need to program: one to start mining when the computer is locked, and one to stop mining when the computer is unlocked.&lt;br /&gt;
&lt;br /&gt;
===Start mining when the computer is locked===&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;taskschd.msc&amp;quot;.&lt;br /&gt;
# On the very right, select &amp;quot;Create Basic Task...&amp;quot; from the menu.&lt;br /&gt;
# Give it a name, such as &amp;quot;Start Bitcoin Mining&amp;quot;. What exactly you type here doesn&#039;t matter, as long as you remember what it is in case you need to change something later. Click Next.&lt;br /&gt;
# Select &amp;quot;When a specific event is logged&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Log&amp;quot;, select &amp;quot;Security&amp;quot;. For &amp;quot;Source&amp;quot;, select &amp;quot;Microsoft Windows security auditing.&amp;quot; For &amp;quot;Event ID&amp;quot;, type 4800. Click Next.&lt;br /&gt;
# Select &amp;quot;Start a program&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Program/script&amp;quot;, click &amp;quot;Browse...&amp;quot; and select cgminer.exe. (You do remember where you extracted it, right?)&lt;br /&gt;
# For &amp;quot;Add arguments (optional)&amp;quot;, type in the command line parameters. Make sure to add &amp;lt;code&amp;gt;--api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt; to the end.&lt;br /&gt;
#:If you&#039;re unfamiliar with cgminer, you can use the following template: &amp;lt;code&amp;gt;-o &#039;&#039;[pool server]&#039;&#039; -u &#039;&#039;[user/worker name]&#039;&#039; -p &#039;&#039;[password]&#039;&#039; --api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Next, and then Finish.&lt;br /&gt;
&lt;br /&gt;
===Stop mining when the computer is unlocked===&lt;br /&gt;
&lt;br /&gt;
To stop cgminer when the computer is unlocked is trickier than it might seem. On my computer (and likely others as well) simply killing the process causes the video driver to temporarily stop responding. This can cause other applications to crash, and it&#039;s also just annoying as you need to wait 10 seconds or more to use your computer. For obvious reasons, it would be VERY annoying to have this happen every time you unlock your computer. (Even if this exact problem doesn&#039;t occur, cgminer may need to &amp;quot;clean up&amp;quot; when it&#039;s done, so it&#039;s best to use this method anyway.)&lt;br /&gt;
&lt;br /&gt;
Luckily, cgminer provides an API to allow other applications to control it. All we need to do is send the command &amp;quot;quit&amp;quot; to the local computer on network port 4028. For this, we&#039;ll use a program called [http://joncraton.org/blog/46/netcat-for-windows netcat]. Download this, and extract &amp;quot;nc.exe&amp;quot; to your cgminer directory.&lt;br /&gt;
&lt;br /&gt;
Now we need to create two new files in this directory. Open Notepad, and type the word &amp;quot;quit&amp;quot;. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; press Enter afterwards. For some strange reason, cgminer doesn&#039;t accept commands ending in a newline character. This is why we need to create a file in the first place, rather than simply using the &amp;lt;code&amp;gt;echo&amp;lt;/code&amp;gt; command. Save the file to your cgminer directory as &amp;quot;quit.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Click File&amp;gt;New, and type the following:&lt;br /&gt;
&lt;br /&gt;
 @echo off&lt;br /&gt;
 nc 127.0.0.1 4028 &amp;lt; quit.txt&lt;br /&gt;
&lt;br /&gt;
Save the file in the same directory as &amp;quot;quit.bat&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now we need to schedule a new task. Do this the same way as you did before, with a few differences:&lt;br /&gt;
&lt;br /&gt;
* Type a different name (should be obvious)&lt;br /&gt;
* Instead of 4800, enter 4801 for the event ID.&lt;br /&gt;
* For &amp;quot;Program/script&amp;quot;, select the &amp;quot;quit.bat&amp;quot; you just created instead of &amp;quot;cgminer.exe&amp;quot;.&lt;br /&gt;
* Leave &amp;quot;Add arguments (optional)&amp;quot; blank, and select the cgminer directory for &amp;quot;Start in (optional)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==You&#039;re done!==&lt;br /&gt;
&lt;br /&gt;
Lock your computer (Windows+L), wait 15 seconds or so, and unlock it. While it&#039;s locked, you should hear your GPU fan start spinning. When you unlock your computer, you should see cgminer appear for a second, then exit.&lt;br /&gt;
&lt;br /&gt;
If it didn&#039;t work properly, leave a comment on [[Talk:{{PAGENAME}}|this article&#039;s talk page]]. If it did, great!&lt;br /&gt;
&lt;br /&gt;
If you want to thank me, my Bitcoin address is &amp;lt;code&amp;gt;14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP&amp;lt;/code&amp;gt;. Send me some bitcoins if you want, in which case, thanks a lot!&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38163</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38163"/>
		<updated>2013-05-31T00:08:30Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: /* Stop mining when the computer is unlocked */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows. In addition, any text surrounded by quotes is to be entered without quotes.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
==Using the Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
Next, we need to tell Windows to respond to these events. There are two tasks we need to program: one to start mining when the computer is locked, and one to stop mining when the computer is unlocked.&lt;br /&gt;
&lt;br /&gt;
===Start mining when the computer is locked===&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;taskschd.msc&amp;quot;.&lt;br /&gt;
# On the very right, select &amp;quot;Create Basic Task...&amp;quot; from the menu.&lt;br /&gt;
# Give it a name, such as &amp;quot;Start Bitcoin Mining&amp;quot;. What exactly you type here doesn&#039;t matter, as long as you remember what it is in case you need to change something later. Click Next.&lt;br /&gt;
# Select &amp;quot;When a specific event is logged&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Log&amp;quot;, select &amp;quot;Security&amp;quot;. For &amp;quot;Source&amp;quot;, select &amp;quot;Microsoft Windows security auditing.&amp;quot; For &amp;quot;Event ID&amp;quot;, type 4800. Click Next.&lt;br /&gt;
# Select &amp;quot;Start a program&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Program/script&amp;quot;, click &amp;quot;Browse...&amp;quot; and select cgminer.exe. (You do remember where you extracted it, right?)&lt;br /&gt;
# For &amp;quot;Add arguments (optional)&amp;quot;, type in the command line parameters. Make sure to add &amp;lt;code&amp;gt;--api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt; to the end.&lt;br /&gt;
#:If you&#039;re unfamiliar with cgminer, you can use the following template: &amp;lt;code&amp;gt;-o &#039;&#039;[pool server]&#039;&#039; -u &#039;&#039;[user/worker name]&#039;&#039; -p &#039;&#039;[password]&#039;&#039; --api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Next, and then Finish.&lt;br /&gt;
&lt;br /&gt;
===Stop mining when the computer is unlocked===&lt;br /&gt;
&lt;br /&gt;
To stop cgminer when the computer is unlocked is trickier than it might seem. On my computer (and likely others as well) simply killing the process causes the video driver to temporarily stop responding. This can cause other applications to crash, and it&#039;s also just annoying as you need to wait 10 seconds or more to use your computer. For obvious reasons, it would be VERY annoying to have this happen every time you unlock your computer. (Even if this exact problem doesn&#039;t occur, cgminer may need to &amp;quot;clean up&amp;quot; when it&#039;s done, so it&#039;s best to use this method anyway.)&lt;br /&gt;
&lt;br /&gt;
Luckily, cgminer provides an API to allow other applications to control it. All we need to do is send the command &amp;quot;quit&amp;quot; to the local computer on network port 4028. For this, we&#039;ll use a program called [http://joncraton.org/blog/46/netcat-for-windows netcat]. Download this, and extract &amp;quot;nc.exe&amp;quot; to your cgminer directory.&lt;br /&gt;
&lt;br /&gt;
Now we need to create two new files in this directory. Open Notepad, and type the word &amp;quot;quit&amp;quot;. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; press Enter afterwards. For some strange reason, cgminer doesn&#039;t accept commands ending in a newline character. This is why we need to create a file in the first place, rather than simply using the &amp;lt;code&amp;gt;echo&amp;lt;/code&amp;gt; command. Save the file to your cgminer directory as &amp;quot;quit.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Click File&amp;gt;New, and type the following:&lt;br /&gt;
&lt;br /&gt;
 @echo off&lt;br /&gt;
 nc 127.0.0.1 4028 &amp;lt; quit.txt&lt;br /&gt;
&lt;br /&gt;
Save the file in the same directory as &amp;quot;quit.bat&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now we need to schedule a new task. Do this the same way as you did before, with a few differences:&lt;br /&gt;
&lt;br /&gt;
* Type a different name (should be obvious)&lt;br /&gt;
* Instead of 4800, enter 4801 for the event ID.&lt;br /&gt;
* For &amp;quot;Program/script&amp;quot;, select the &amp;quot;quit.bat&amp;quot; you just created instead of &amp;quot;cgminer.exe&amp;quot;.&lt;br /&gt;
* Leave &amp;quot;Add arguments (optional)&amp;quot; blank, and select the cgminer directory for &amp;quot;Start in (optional)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==You&#039;re done!==&lt;br /&gt;
&lt;br /&gt;
Lock your computer (Windows+L), wait 15 seconds or so, and unlock it. While it&#039;s locked, you should hear your GPU fan start spinning. When you unlock your computer, you should see cgminer appear for a second, then exit.&lt;br /&gt;
&lt;br /&gt;
If it didn&#039;t work properly, leave a comment on [[Talk:{{PAGENAME}}|this article&#039;s talk page]]. If it did, great!&lt;br /&gt;
&lt;br /&gt;
If you want to thank me, my Bitcoin address is &amp;lt;code&amp;gt;14jPnCGuRNeXe32DN3LHB1sghstkkgxYDP&amp;lt;/code&amp;gt;. Send me some bitcoins if you want. Thanks!&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38162</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38162"/>
		<updated>2013-05-31T00:01:21Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows. In addition, any text surrounded by quotes is to be entered without quotes.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
==Using the Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
Next, we need to tell Windows to respond to these events. There are two tasks we need to program: one to start mining when the computer is locked, and one to stop mining when the computer is unlocked.&lt;br /&gt;
&lt;br /&gt;
===Start mining when the computer is locked===&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;taskschd.msc&amp;quot;.&lt;br /&gt;
# On the very right, select &amp;quot;Create Basic Task...&amp;quot; from the menu.&lt;br /&gt;
# Give it a name, such as &amp;quot;Start Bitcoin Mining&amp;quot;. What exactly you type here doesn&#039;t matter, as long as you remember what it is in case you need to change something later. Click Next.&lt;br /&gt;
# Select &amp;quot;When a specific event is logged&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Log&amp;quot;, select &amp;quot;Security&amp;quot;. For &amp;quot;Source&amp;quot;, select &amp;quot;Microsoft Windows security auditing.&amp;quot; For &amp;quot;Event ID&amp;quot;, type 4800. Click Next.&lt;br /&gt;
# Select &amp;quot;Start a program&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Program/script&amp;quot;, click &amp;quot;Browse...&amp;quot; and select cgminer.exe. (You do remember where you extracted it, right?)&lt;br /&gt;
# For &amp;quot;Add arguments (optional)&amp;quot;, type in the command line parameters. Make sure to add &amp;lt;code&amp;gt;--api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt; to the end.&lt;br /&gt;
#:If you&#039;re unfamiliar with cgminer, you can use the following template: &amp;lt;code&amp;gt;-o &#039;&#039;[pool server]&#039;&#039; -u &#039;&#039;[user/worker name]&#039;&#039; -p &#039;&#039;[password]&#039;&#039; --api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Next, and then Finish.&lt;br /&gt;
&lt;br /&gt;
===Stop mining when the computer is unlocked===&lt;br /&gt;
&lt;br /&gt;
To stop cgminer when the computer is unlocked is trickier than it might seem. On my computer (and likely others as well) simply killing the process causes the video driver to temporarily stop responding. This can cause other applications to crash, and it&#039;s also just annoying as you need to wait 10 seconds or more to use your computer. For obvious reasons, it would be VERY annoying to have this happen every time you unlock your computer. (Even if this exact problem doesn&#039;t occur, cgminer may need to &amp;quot;clean up&amp;quot; when it&#039;s done, so it&#039;s best to use this method anyway.)&lt;br /&gt;
&lt;br /&gt;
Luckily, cgminer provides an API to allow other applications to control it. All we need to do is send the command &amp;quot;quit&amp;quot; to the local computer on network port 4028. For this, we&#039;ll use a program called [http://joncraton.org/blog/46/netcat-for-windows netcat]. Download this, and extract &amp;quot;nc.exe&amp;quot; to your cgminer directory.&lt;br /&gt;
&lt;br /&gt;
Now we need to create two new files in this directory. Open Notepad, and type the word &amp;quot;quit&amp;quot;. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; press Enter afterwards. For some strange reason, cgminer doesn&#039;t accept commands ending in a newline character. This is why we need to create a file in the first place, rather than simply using the &amp;lt;code&amp;gt;echo&amp;lt;/code&amp;gt; command. Save the file to your cgminer directory as &amp;quot;quit.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Go to File&amp;gt;New, and type the following:&lt;br /&gt;
&lt;br /&gt;
 @echo off&lt;br /&gt;
 nc 127.0.0.1 4028 &amp;lt; quit.txt&lt;br /&gt;
&lt;br /&gt;
Save the file in the same directory as &amp;quot;quit.bat&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38161</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38161"/>
		<updated>2013-05-30T23:51:35Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
==Using the Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
Next, we need to tell Windows to respond to these events. There are two tasks we need to program: one to start mining when the computer is locked, and one to stop mining when the computer is unlocked.&lt;br /&gt;
&lt;br /&gt;
===Start mining when the computer is locked===&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;taskschd.msc&amp;quot;.&lt;br /&gt;
# On the very right, select &amp;quot;Create Basic Task...&amp;quot; from the menu.&lt;br /&gt;
# Give it a name, such as &amp;quot;Start Bitcoin Mining&amp;quot;. What exactly you type here doesn&#039;t matter, as long as you remember what it is in case you need to change something later. Click Next.&lt;br /&gt;
# Select &amp;quot;When a specific event is logged&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Log&amp;quot;, select &amp;quot;Security&amp;quot;. For &amp;quot;Source&amp;quot;, select &amp;quot;Microsoft Windows security auditing.&amp;quot; For &amp;quot;Event ID&amp;quot;, type 4800. Click Next.&lt;br /&gt;
# Select &amp;quot;Start a program&amp;quot; from the list, and click Next.&lt;br /&gt;
# For &amp;quot;Program/script&amp;quot;, click &amp;quot;Browse...&amp;quot; and select cgminer.exe. (You do remember where you extracted it, right?)&lt;br /&gt;
# For &amp;quot;Add arguments (optional)&amp;quot;, type in the command line parameters. Make sure to add &amp;lt;code&amp;gt;--api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt; to the end.&lt;br /&gt;
#:If you&#039;re unfamiliar with cgminer, you can use the following template: &amp;lt;code&amp;gt;-o &#039;&#039;[pool server]&#039;&#039; -u &#039;&#039;[user/worker name]&#039;&#039; -p &#039;&#039;[password]&#039;&#039; --api-listen --api-allow W:127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Next, and then Finish.&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38160</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38160"/>
		<updated>2013-05-30T23:39:30Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|250px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38159</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38159"/>
		<updated>2013-05-30T23:39:17Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: /* Configuring the security auditing settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|350px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38158</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38158"/>
		<updated>2013-05-30T23:38:39Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: /* Configuring the security auditing settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
[[File:Windows Audit Configuration.png|thumb|right|350px|Configuring Windows to log when the computer is locked and unlocked.]]&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38157</id>
		<title>Tutorial: Automatically mine when computer is locked on Windows</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Tutorial:_Automatically_mine_when_computer_is_locked_on_Windows&amp;diff=38157"/>
		<updated>2013-05-30T23:37:25Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows.&amp;#039;&amp;#039;  If you want to mine Bitcoins, but also ne...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; This tutorial is created with Windows 7 in mind. The exact steps are likely different for other versions of Windows.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to mine Bitcoins, but also need to use your computer for other GPU-intensive tasks like gaming, it can be annoying to start mining each time you stop using your computer. On Microsoft Windows, there is a little-known way to automate tasks like this. For this tutorial, we will be using [[cgminer]]. If you don&#039;t already have it, [https://bitcointalk.org/index.php?topic=28402.0 download it from here], and extract it to a folder somewhere on your hard drive.&lt;br /&gt;
&lt;br /&gt;
==Configuring the security auditing settings==&lt;br /&gt;
&lt;br /&gt;
Windows keeps a log of various types of events that occur on your computer. These events include software crashes and system service notifications, among other things. This event log is closely tied to another feature of Windows known as security auditing. Basically, every time certain tasks are performed that require user authentication, such as logging on to your computer, it creates a log entry. This feature is designed mainly for professionals who need to monitor corporate networks, but it can be useful for this purpose too. How? It is possible to program Windows to run programs whenever specific types of events occur.&lt;br /&gt;
&lt;br /&gt;
Locking and unlocking your computer are two things that Windows can log, but by default it is not configured to do so. To enable this:&lt;br /&gt;
&lt;br /&gt;
# Open the Run dialog (Windows+R) and type &amp;quot;secpol.msc&amp;quot;.&lt;br /&gt;
# On the left, expand &amp;quot;Advanced Audit Policy Configuration&amp;quot;, &amp;quot;System Audit Policies - Local Group Policy Object&amp;quot;, and select &amp;quot;Logon/Logoff&amp;quot;.&lt;br /&gt;
# On the right, double-click &amp;quot;Audit Other Logon/Logoff Events&amp;quot;.&lt;br /&gt;
# In the dialog that appears, make sure &amp;quot;Configure the following audit events&amp;quot; and &amp;quot;Success&amp;quot; are checked.&lt;br /&gt;
# Click OK, and close the Local Security Policy window.&lt;br /&gt;
&lt;br /&gt;
[[File:Windows Audit Configuration.png]]&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=File:Windows_Audit_Configuration.png&amp;diff=38156</id>
		<title>File:Windows Audit Configuration.png</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=File:Windows_Audit_Configuration.png&amp;diff=38156"/>
		<updated>2013-05-30T23:37:13Z</updated>

		<summary type="html">&lt;p&gt;Flarn2006: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Licensing ==&lt;br /&gt;
{{self|GFDL|cc-by-sa-3.0|migration=redundant}}&lt;/div&gt;</summary>
		<author><name>Flarn2006</name></author>
	</entry>
</feed>