<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Setting graphics hardware acceleration in Windows</title>
	<atom:link href="http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/</link>
	<description>go ahead, ask me anything!</description>
	<pubDate>Wed, 19 Nov 2008 16:24:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Rob</title>
		<link>http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8613</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Fri, 04 Jul 2008 09:33:01 +0000</pubDate>
		<guid isPermaLink="false">http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8613</guid>
		<description>Chris... This works fantastic</description>
		<content:encoded><![CDATA[<p>Chris&#8230; This works fantastic</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8591</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 27 May 2008 07:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8591</guid>
		<description>Wow thats a lot of code.

Dim RegValueData
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
objReg.GetStringValue &#38;H80000002,"HARDWARE\DEVICEMAP\VIDEO","\Device\Video0",RegValueData
objReg.SetDWORDValue &#38;H80000002,Right(RegValueData, 82),"Acceleration.Level",0</description>
		<content:encoded><![CDATA[<p>Wow thats a lot of code.</p>
<p>Dim RegValueData<br />
Set objReg=GetObject(&#8221;winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv&#8221;)<br />
objReg.GetStringValue &amp;H80000002,&#8221;HARDWARE\DEVICEMAP\VIDEO&#8221;,&#8221;\Device\Video0&#8243;,RegValueData<br />
objReg.SetDWORDValue &amp;H80000002,Right(RegValueData, 82),&#8221;Acceleration.Level&#8221;,0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DigiMahn</title>
		<link>http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8416</link>
		<dc:creator>DigiMahn</dc:creator>
		<pubDate>Tue, 05 Feb 2008 04:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8416</guid>
		<description>This script ought to do it, but you should know that on Windows Server 2003 the value for Acceleration.Level gets set to 0 for Full Acceleration and in Windows XP the Accelleration.Level is Deleted.

I tested setting the value to 0 and leaving it in XP's registry and all seemed OK, but I would recommend a log off at least and a restart at best...I know it's an old topic but I am hoping someone out there needs the help!

use copy &#38; paste to notepad to ditch the width limits of this blog.




Const HKEY_LOCAL_MACHINE 	= &#38;H80000002

sComputer	= "."
sMethod		= "GetStringValue"
hTree		= HKEY_LOCAL_MACHINE
sKey		= "HARDWARE\DEVICEMAP\VIDEO"
sValue		= "\Device\Video0"

Set oRegistry	= GetObject("winmgmts:{impersonationLevel=impersonate}//" &#38; sComputer &#38; "/root/default:StdRegProv")

Set oMethod	= oRegistry.Methods_(sMethod)
Set oInParam	= oMethod.inParameters.SpawnInstance_()

  oInParam.hDefKey = hTree
  oInParam.sSubKeyName = sKey
  oInParam.sValueName = sValue
  
  Set oOutParam = oRegistry.ExecMethod_(sMethod, oInParam)
  strParse = oOutParam.Properties_("sValue")
  
    '* In Windows XP Delete the Accelleration.Level altogether
    '* In Windows Server 2003 Change the DWORD value for Accelleration.Level from 0 (none) to 5 (full)
    
    sMethod	= "SetDWordValue"
    hTree	= HKEY_LOCAL_MACHINE
    sKey	= Replace(strParse, "\Registry\Machine\", "")
    sValueName	= "Acceleration.Level"
    uValue	= 0
    
    Set oRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}//" &#38; sComputer &#38; "/root/default:StdRegProv")
    Set oMethod   = oRegistry.Methods_(sMethod)
    Set oInParam  = oMethod.inParameters.SpawnInstance_()
    
    oInParam.hDefKey = hTree
    oInParam.sSubKeyName = sKey
    oInParam.sValueName = sValueName
    oInParam.uValue = uValue
    
  Set oOutParam = oRegistry.ExecMethod_(sMethod, oInParam)
  
sComputer     = Empty
sMethod       = Empty
hTree         = Empty
sKey          = Empty
sValue        = Empty
sValueName    = Empty
uValue        = Empty
Set oRegistry = Nothing
Set oMethod   = Nothing
Set oInParam  = Nothing
Set oOutParam = Nothing

WScript.Quit</description>
		<content:encoded><![CDATA[<p>This script ought to do it, but you should know that on Windows Server 2003 the value for Acceleration.Level gets set to 0 for Full Acceleration and in Windows XP the Accelleration.Level is Deleted.</p>
<p>I tested setting the value to 0 and leaving it in XP&#8217;s registry and all seemed OK, but I would recommend a log off at least and a restart at best&#8230;I know it&#8217;s an old topic but I am hoping someone out there needs the help!</p>
<p>use copy &amp; paste to notepad to ditch the width limits of this blog.</p>
<p>Const HKEY_LOCAL_MACHINE 	= &amp;H80000002</p>
<p>sComputer	= &#8220;.&#8221;<br />
sMethod		= &#8220;GetStringValue&#8221;<br />
hTree		= HKEY_LOCAL_MACHINE<br />
sKey		= &#8220;HARDWARE\DEVICEMAP\VIDEO&#8221;<br />
sValue		= &#8220;\Device\Video0&#8243;</p>
<p>Set oRegistry	= GetObject(&#8221;winmgmts:{impersonationLevel=impersonate}//&#8221; &amp; sComputer &amp; &#8220;/root/default:StdRegProv&#8221;)</p>
<p>Set oMethod	= oRegistry.Methods_(sMethod)<br />
Set oInParam	= oMethod.inParameters.SpawnInstance_()</p>
<p>  oInParam.hDefKey = hTree<br />
  oInParam.sSubKeyName = sKey<br />
  oInParam.sValueName = sValue</p>
<p>  Set oOutParam = oRegistry.ExecMethod_(sMethod, oInParam)<br />
  strParse = oOutParam.Properties_(&#8221;sValue&#8221;)</p>
<p>    &#8216;* In Windows XP Delete the Accelleration.Level altogether<br />
    &#8216;* In Windows Server 2003 Change the DWORD value for Accelleration.Level from 0 (none) to 5 (full)</p>
<p>    sMethod	= &#8220;SetDWordValue&#8221;<br />
    hTree	= HKEY_LOCAL_MACHINE<br />
    sKey	= Replace(strParse, &#8220;\Registry\Machine\&#8221;, &#8220;&#8221;)<br />
    sValueName	= &#8220;Acceleration.Level&#8221;<br />
    uValue	= 0</p>
<p>    Set oRegistry = GetObject(&#8221;winmgmts:{impersonationLevel=impersonate}//&#8221; &amp; sComputer &amp; &#8220;/root/default:StdRegProv&#8221;)<br />
    Set oMethod   = oRegistry.Methods_(sMethod)<br />
    Set oInParam  = oMethod.inParameters.SpawnInstance_()</p>
<p>    oInParam.hDefKey = hTree<br />
    oInParam.sSubKeyName = sKey<br />
    oInParam.sValueName = sValueName<br />
    oInParam.uValue = uValue</p>
<p>  Set oOutParam = oRegistry.ExecMethod_(sMethod, oInParam)</p>
<p>sComputer     = Empty<br />
sMethod       = Empty<br />
hTree         = Empty<br />
sKey          = Empty<br />
sValue        = Empty<br />
sValueName    = Empty<br />
uValue        = Empty<br />
Set oRegistry = Nothing<br />
Set oMethod   = Nothing<br />
Set oInParam  = Nothing<br />
Set oOutParam = Nothing</p>
<p>WScript.Quit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DigiMahn</title>
		<link>http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8414</link>
		<dc:creator>DigiMahn</dc:creator>
		<pubDate>Mon, 04 Feb 2008 21:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8414</guid>
		<description>that last comment is missing drive and path information in the runonce information - I hope anyone reading it realizes that.

Did not realize that was going to happen...</description>
		<content:encoded><![CDATA[<p>that last comment is missing drive and path information in the runonce information - I hope anyone reading it realizes that.</p>
<p>Did not realize that was going to happen&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DigiMahn</title>
		<link>http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8413</link>
		<dc:creator>DigiMahn</dc:creator>
		<pubDate>Mon, 04 Feb 2008 21:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8413</guid>
		<description>You could try this (it would happen first user logs on):

Create a VBScript...
 1. copies %windir%\System32\usrlogon.cmd to %windir%\System32\usrlogon.tmp
 2. Reads your value from HKLM\HARDWARE\DEVICEMAP\VIDEO
 3. Replaces the string accordingly (5 = None, 0 = Full)
 4. Creates a new .REG file accordingly
 5. Runs regedit /s to set

Now open %WINDIR%\System32\usrlogn.cmd...
 (Assuming you have never touched the local sysstem logon script before this will work, but you will have to adjust to your needs if you have made changes already)
 1. First line should be @Echo Off and set a command to run your VBscript and wait for it to return control to the O/S before continuing - something like:

START /MIN /WAIT "cscript //b \SETACCEL.vbs"

 (you only need the quotes around the cscript command if your path contains a space or a comma)



Now there's more than one way to keep this from happening everytime a user logs on from here on out...but this is how I would handle it:

Use the HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce to start a batch file that deletes usrlogon.cmd and then renames usrlogon.tmp to usrlogon.cmd and now everything is back to normal:

RunOnce key in registry runs once...kind of intuitive
(use a string value like accellsetup and then set its value to ":\\batch.bat" and be sure to include the quotes)

You seem a bit smarter about all this than me, but if you want help send me an email (I had to leave an addy with this post...hope you can see it).</description>
		<content:encoded><![CDATA[<p>You could try this (it would happen first user logs on):</p>
<p>Create a VBScript&#8230;<br />
 1. copies %windir%\System32\usrlogon.cmd to %windir%\System32\usrlogon.tmp<br />
 2. Reads your value from HKLM\HARDWARE\DEVICEMAP\VIDEO<br />
 3. Replaces the string accordingly (5 = None, 0 = Full)<br />
 4. Creates a new .REG file accordingly<br />
 5. Runs regedit /s to set</p>
<p>Now open %WINDIR%\System32\usrlogn.cmd&#8230;<br />
 (Assuming you have never touched the local sysstem logon script before this will work, but you will have to adjust to your needs if you have made changes already)<br />
 1. First line should be @Echo Off and set a command to run your VBscript and wait for it to return control to the O/S before continuing - something like:</p>
<p>START /MIN /WAIT &#8220;cscript //b \SETACCEL.vbs&#8221;</p>
<p> (you only need the quotes around the cscript command if your path contains a space or a comma)</p>
<p>Now there&#8217;s more than one way to keep this from happening everytime a user logs on from here on out&#8230;but this is how I would handle it:</p>
<p>Use the HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce to start a batch file that deletes usrlogon.cmd and then renames usrlogon.tmp to usrlogon.cmd and now everything is back to normal:</p>
<p>RunOnce key in registry runs once&#8230;kind of intuitive<br />
(use a string value like accellsetup and then set its value to &#8220;:\\batch.bat&#8221; and be sure to include the quotes)</p>
<p>You seem a bit smarter about all this than me, but if you want help send me an email (I had to leave an addy with this post&#8230;hope you can see it).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8226</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Thu, 13 Sep 2007 01:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8226</guid>
		<description>Got it.

"Acceleration.Level"=dword:00000001 (1-5) shows up where it is supposed to be in Windows 2000 as long as Hardware acceleration is not set to FULL.  At least it worked in my test against an ESX VM guest.

If it does not for you, then try (on a test machine) creating the key in its expected location, setting the DWORD value to 0.  Sorry I didn't have a test W2K server to try on my own.</description>
		<content:encoded><![CDATA[<p>Got it.</p>
<p>&#8220;Acceleration.Level&#8221;=dword:00000001 (1-5) shows up where it is supposed to be in Windows 2000 as long as Hardware acceleration is not set to FULL.  At least it worked in my test against an ESX VM guest.</p>
<p>If it does not for you, then try (on a test machine) creating the key in its expected location, setting the DWORD value to 0.  Sorry I didn&#8217;t have a test W2K server to try on my own.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emanuele</title>
		<link>http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8076</link>
		<dc:creator>Emanuele</dc:creator>
		<pubDate>Mon, 02 Apr 2007 08:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8076</guid>
		<description>I've made a commandline utility for switching on/off the hardware acceleration instead of the 11 clicks...

http://www.teslacore.it/wiki/index.php?title=HWAccelSwitch

Thanks for the hint!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve made a commandline utility for switching on/off the hardware acceleration instead of the 11 clicks&#8230;</p>
<p><a href="http://www.teslacore.it/wiki/index.php?title=HWAccelSwitch" rel="nofollow">http://www.teslacore.it/wiki/index.php?title=HWAccelSwitch</a></p>
<p>Thanks for the hint!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8040</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 16 Mar 2007 17:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8040</guid>
		<description>@Emmanuel: This was on Windows XP. I do not know if this setting is available on 2000, but your experience leads me to believe it is not. I'll see if I can find anything, but I've been too busy to even write a blog post more than once a week lately. Keep checking back, or subscribe to the comments for my blog.</description>
		<content:encoded><![CDATA[<p>@Emmanuel: This was on Windows XP. I do not know if this setting is available on 2000, but your experience leads me to believe it is not. I&#8217;ll see if I can find anything, but I&#8217;ve been too busy to even write a blog post more than once a week lately. Keep checking back, or subscribe to the comments for my blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emmanuel</title>
		<link>http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8039</link>
		<dc:creator>Emmanuel</dc:creator>
		<pubDate>Thu, 15 Mar 2007 18:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://ask-mark.com/2006/04/03/setting-graphics-hardware-acceleration-in-windows/#comment-8039</guid>
		<description>So, was this on Windows 2000 or XP?  I'm working on a similar issue due to eTalk Qfiniti needing to disable hardware acceleration.  But I'm running with only Windows 2000, I can't find Acceleration.Level anywhere in the 2k registry - even on a machine where I've changed the Acceleration level.

I've looked in those spots in the registry you pointed out, but can't find anything that appears related...

Any ideas for me?</description>
		<content:encoded><![CDATA[<p>So, was this on Windows 2000 or XP?  I&#8217;m working on a similar issue due to eTalk Qfiniti needing to disable hardware acceleration.  But I&#8217;m running with only Windows 2000, I can&#8217;t find Acceleration.Level anywhere in the 2k registry - even on a machine where I&#8217;ve changed the Acceleration level.</p>
<p>I&#8217;ve looked in those spots in the registry you pointed out, but can&#8217;t find anything that appears related&#8230;</p>
<p>Any ideas for me?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
