Question

Decreasing Hardware Acceleration

Asked by: mpenuel

I would like to be able to decrease the Hardware Acceleration by one notch during the building process of our machines.  By default, the machines are built with the acceleration is set to full (all the way to the right).  I was wondering if there was a registry entry for this setting that I could modify via the WshShell object?  I'm somewhat of a novice to the Windows resgistry, if it's not in HKLM\Software or HKCU\Software, I'm lost.  Any help would be great.  If you need more info, please let me know I'll try my best to get it to you.  Thanks.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-11-29 at 09:51:01ID21646732
Tags

acceleration

,

hardware

,

registry

Topic

Miscellaneous Programming

Participating Experts
3
Points
500
Comments
12

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Video Card and Accelator - DirectX
    I have installed Windows2000. My system has an NVIDIA TNT video card. After the installation everything works fine except for games that take advantage of the hardware accelator (DirectX). Windows2000 already installed a driver for my video card, however, the driver seems not...
  2. Menu accel underline not showing?
    Delphi 5.1 Ent, Win2000 SP1 I drop Tmainmenu on a blank form, double click it, and add &File the file menu appears in the designer with the F underlined, but not in the form at runtime or designtime... why?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: InteractiveMindPosted on 2005-11-29 at 10:26:24ID: 15382235

I imagine it will require some calling of a low-level function; meaning a programmatic solution.

Hopefully I'm mistaken though.

 

by: mpenuelPosted on 2005-11-29 at 10:33:45ID: 15382293

We use a brute force tool to imitate keystrokes, I just wanted to see if there was another route.  I've done google searches and examined the registry after changing it and I can't find anything.  Just thought it wouldn't hurt to ask if there was a spot in the registry I could modify.

 

by: InteractiveMindPosted on 2005-11-29 at 10:36:26ID: 15382309

Fair enough; unfortunately, such low-level configuration is not dependant on the registry, because the hardware is usually configured prior to loading the registry. So, I guess you'll have to stick with your brute force method for now ;-)

Thanks for the points. :)

 

by: gecko_au2003Posted on 2005-11-29 at 11:56:01ID: 15382909

I have been searching and this is the best I can find :

http://www.experts-exchange.com/Community_Support/Q_20563400.html

 

by: mpenuelPosted on 2005-11-30 at 11:42:54ID: 15390936

cool, thanks gecko, i usually do vbscript, and here's what I got, it's working great (xxxxxxx's have been substituted for company specific info), there are some in house rountines I'm running, sometimes they are easier to use than WshShell object.

*******************************************************************************************************************

Option Explicit
HW_Accel

Sub HW_Accel

Dim objfso, WshShell, objOutputFile, sOutputFile, sDevice, sUpper, x, sSearchKey, sNewKey, sValue, sRemove

Set objfso = CreateObject("Scripting.FileSystemObject")
Set WshShell = CreateObject("WScript.Shell")
CONST ForReading = 1, ForWriting = 2, ForAppending = 8

sOutputFile = "C:\Acceleration.log"

If objfso.FileExists(sOutputFile) Then
            objfso.DeleteFile(sOutputFile)
End If

Set objOutputFile = objfso.OpenTextFile(sOutputFile, ForAppending, true)      
      
If Not IncludeCodeFile_GlobalNamespace("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") Then
      objOutputFile.Writeline Date & "  " & Time & "  Failed to load WMI_Registry.vbi"
      objOutputFile.Writeline Date & "  " & Time & "  Exiting.."
      Exit Sub
Else
      objOutputFile.Writeline Date & "  " & Time & "  WMI_Registry.vbi loaded! Continuing.."
End If      

If Reg_ReadValue("HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\VIDEO", "\Device\Video0", sDevice) Then
      'wscript.echo sDevice
      sDevice = UCase(sDevice)
      sSearchKey = Replace(sDevice, "\REGISTRY\MACHINE", "HKEY_LOCAL_MACHINE")
      'wscript.echo sSearchKey
      If Reg_ExistKey(sSearchKey) Then
            If Reg_ExistValue(sSearchKey, "Acceleration.Level") Then
                  'wscript.echo "It's there"
                  objOutputFile.Writeline Date & "  " & Time & "  Acceleration.Level value exists in " & sSearchKey & ". Attempting to get DWord value...."
                        If Reg_GetDWordValue(sSearchKey, "Acceleration.Level", sValue) Then
                              objOutputFile.Writeline Date & "  " & Time & "  Value is: " & sValue
                                    If sValue <> 1 Then
                                          objOutputFile.Writeline Date & "  " & Time & "  Attempting to change DWord Value to 1..."
                                          sNewKey = sSearchKey & "\Acceleration.Level"
                                          WshShell.RegWrite sNewKey, "1", "REG_DWORD"
                                          objOutputFile.Writeline Date & "  " & Time & "  Value Changed to 1, we are done - exiting..."
                                          Exit Sub
                                          'wscript.echo "Written"
                                    Else
                                          objOutputFile.Writeline Date & "  " & Time & "  Value is already equal to " & sValue & ", no need to modify, exiting..."
                                          Exit Sub
                                    End If
                        Else
                              objOutputFile.Writeline Date & "  " & Time & "  Value does not exist, or unable to determine value.  Will attempt to add manually.."
                                    If Reg_WriteValue(sSearchKey, "Acceleration.Level", "1", 4) Then
                                          objOutputFile.Writeline Date & "  " & Time & "  Value was successfully added!"
                                          'wscript.echo "Created"
                                    Else
                                          objOutputFile.Writeline Date & "  " & Time & "  Value was not added successfully, Exiting..."
                                          Exit Sub
                                    End If
                        End If
            Else
                  'wscript.echo "No"
                  objOutputFile.Writeline Date & "  " & Time & "  No Acceleration.Level value (HW acceleration is set to full), attempting to add DWord Value....."
                  If Reg_WriteValue(sSearchKey, "Acceleration.Level", "1", 4) Then
                        objOutputFile.Writeline Date & "  " & Time & "  Value was successfully added!"
                        'wscript.echo "Created"
                  Else
                        objOutputFile.Writeline Date & "  " & Time & "  Value was not added successfully, Exiting..."
                        Exit Sub
                  End If
            End If
      Else
            objOutputFile.Writeline Date & "  " & Time & "  Key from parsed string does not exists, Exiting...."
            Exit Sub
      End If
Else
      objOutputFile.Writeline Date & "  " & Time & "  Key not present, Exiting..."
      Exit Sub
End If

End Sub

Function IncludeCodeFile_GlobalNamespace(ByVal FileName)
      IncludeCodeFile_GlobalNamespace = False                                                                                        
            
      Dim FSO, FileObj, StreamObj, S

      Set FSO = CreateObject("Scripting.FileSystemObject")

      On Error Resume Next
      Set FileObj = FSO.GetFile(FileName)
            If Err.Number <> 0 Then
                  objOutputFile.Writeline Date & "   " & Time & vbTab & vbTab & "GetFile Error: " & Err.Number & " - " & Err.Description
                  Exit Function
            End If
                  If FileObj.Size < 1 Then
                        objOutputFile.Writeline Date & "   " & Time & vbTab & vbTab & "File Size: " & FileObj.Size
                        Exit Function
                  End If
            Set StreamObj = FileObj.OpenAsTextStream(1, -2)
                        If Err.Number <> 0 Then
                              objOutputFile.Writeline Date & "   " & Time & vbTab & vbTab & "OpenTextStream Error: " & Err.Number & " - " & Err.Description
                              Exit Function
                        End If
            S = StreamObj.ReadAll()
                        If Err.Number = 0 Then
                              Err.Clear
                              ExecuteGlobal S
                                    If Err.Number <> 0 Then
                                          objOutputFile.Writeline Date & "   " & Time & vbTab & vbTab & "ExecuteGlobal Error: " & Err.Number & " - " & Err.Description
                                          Exit Function
                                    End If
                              IncludeCodeFile_GlobalNamespace = True
                        Else
                              objOutputFile.Writeline Date & "   " & Time & vbTab & vbTab & "ReadAll Error: " & Err.Number & " - " & Err.Description
                        End If
      StreamObj.Close
      Set FileObj = Nothing
      Set StreamObj = Nothing
      Set FSO = Nothing

End Function

***********************************************************************************************************************

 

by: gecko_au2003Posted on 2005-11-30 at 11:54:55ID: 15391019

I keep getting your vbscript writing to the log file this :

 Failed to load WMI_Registry.vbi
 Exiting..

With the times etc in front of it, Is there another vbscript or something else I need or something I have to do just so I can get this to work, I just want to see it running :)

 

by: gecko_au2003Posted on 2005-11-30 at 11:56:21ID: 15391038

Where you replaced xxxx for company specific info , would I replace the xxxx's for my machine name or what would I put in there ?

 

by: gecko_au2003Posted on 2005-11-30 at 11:59:05ID: 15391062

I am glad it worked and maybe a point split between myself and interactive mind or something ? If not, not to worry, I am just glad I helped you out :)

 

by: mpenuelPosted on 2005-11-30 at 11:59:59ID: 15391067

Those are the in house routines I'm loading, those are written here at my company.  You won't be able to load those.  The Reg_ReadValue, Reg_ExistValue, Reg_ExistKey, and Reg_WriteValue are the functions that use the in house logic.  You can replace them with the regular WshShell methods, for example:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthregwrite.asp

 

by: mpenuelPosted on 2005-11-30 at 12:03:36ID: 15391088

It works in the environment I running it in, any other would use the WshShell object for the manipulation of the registry.  I use a WshShell.RegWrite method in this script.  I could've easily use RegRead, etc. for some of the pieces that I'm using the in house functions/routines for, but I'd rather spare the headache of putting variables in the WshShell statements, I sometimes have trouble with that and end up using a lot of quotes.

Acutally, the "Failed to load wmi_registry.vbi" means it is working :)

 

by: gecko_au2003Posted on 2005-11-30 at 12:10:29ID: 15391142

ok fair enough, Just normally when I see a message that starts with or has the word "failed" in it , I tend to think something has gone wrong lol :)

 

by: prabhat580Posted on 2010-03-05 at 01:04:35ID: 27341776

I want this code in visual c++ for Decreasing Hardware Acceleration. please send me as soon as possible.
Thanks
Prabhat

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...