<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[DriverPacks.net Forum - hi. my script has error in sysprep. any expert guy knows script?]]></title>
		<link>http://forum.driverpacks.net/viewtopic.php?id=4985</link>
		<description><![CDATA[The most recent posts in hi. my script has error in sysprep. any expert guy knows script?.]]></description>
		<lastBuildDate>Tue, 21 Dec 2010 07:20:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: hi. my script has error in sysprep. any expert guy knows script?]]></title>
			<link>http://forum.driverpacks.net/viewtopic.php?pid=41815#p41815</link>
			<description><![CDATA[<p>another problem:<br />@echo off</p><p>:DRIVER_HAL_UPDATE<br />SET HAL=</p><p>IF %NUMBER_OF_PROCESSORS%==1 (<br />devcon.exe /find @ROOT\ACPI_HAL000 | find /i &quot;Multiprocessor&quot; &gt; NUL &amp;&amp; SET HAL=ACPIAPIC_UP<br />devcon.exe /find @ROOT\PCI_HAL000 | find /i &quot;Multiprocessor&quot; &gt; NUL &amp;&amp; SET HAL=MPS_UP<br />) ELSE (<br />devcon.exe /find @ROOT\ACPI_HAL000 | find /i &quot;Uniprocessor&quot; &gt; NUL &amp;&amp; SET HAL=ACPIAPIC_MP<br />devcon.exe /find @ROOT\PCI_HAL000 | find /i &quot;Uniprocessor&quot; &gt; NUL &amp;&amp; SET HAL=MPS_MP<br />)</p><p>IF NOT &quot;%HAL%&quot;==&quot;&quot; (<br />ECHO.<br />ECHO ----------------------------------------<br />ECHO Installing %HAL% HAL<br />ECHO ----------------------------------------<br />ECHO.</p><p>devcon.exe sethwid @ROOT\PCI_HAL000 := !E_ISA_UP !ACPIPIC_UP !ACPIAPIC_UP !ACPIAPIC_MP !MPS_UP !MPS_MP !SGI_MPS_MP !SYSPRO_MP !SGI_MPS_MP<br />devcon.exe sethwid @ROOT\ACPI_HAL000 := !E_ISA_UP !ACPIPIC_UP !ACPIAPIC_UP !ACPIAPIC_MP !MPS_UP !MPS_MP !SGI_MPS_MP !SYSPRO_MP !SGI_MPS_MP<br />devcon.exe sethwid @ROOT\PCI_HAL000 := +%HAL%<br />devcon.exe sethwid @ROOT\ACPI_HAL000 := +%HAL%<br />devcon.exe update %windir%\inf\hal.inf %HAL%<br />devcon.exe ReScan</p><p>ECHO.<br />ECHO ----------------------------------------<br />ECHO Rebooting<br />ECHO ----------------------------------------<br />ECHO.<br />devcon.exe Reboot<br />) ELSE (<br />ECHO.<br />ECHO ----------------------------------------<br />ECHO Correct HAL Detected<br />ECHO ----------------------------------------<br />ECHO.<br />)<br />GOTO :EOF</p><br /><p>This batch file doesn&#039;t update my AMD Turion 64 X2 CPU<br />I made the sysprep with intel single core CPU and i use ACPI PC<br />I even run the command after reboot couple time and still doesn&#039;t update the HAL. it should be dual cores.<br />i failed.</p><p>C:\tools\deleteThis&gt;dir<br />Volume in drive C has no label.<br />Volume Serial Number is 789B-B5B4</p><p>Directory of C:\tools\deleteThis</p><p>12/21/2010 12:36 AM &lt;DIR&gt; .<br />12/21/2010 12:36 AM &lt;DIR&gt; ..<br />11/14/2002 10:32 PM 55,808 devcon.exe<br />12/18/2010 11:31 PM 1,348 Hal_Update.bat<br />2 File(s) 57,156 bytes<br />2 Dir(s) 110,912,729,088 bytes free</p><p>C:\tools\deleteThis&gt;Hal_Update.bat</p><p>----------------------------------------<br />Correct HAL Detected<br />----------------------------------------</p>]]></description>
			<author><![CDATA[null@example.com (roadorange)]]></author>
			<pubDate>Tue, 21 Dec 2010 07:20:59 +0000</pubDate>
			<guid>http://forum.driverpacks.net/viewtopic.php?pid=41815#p41815</guid>
		</item>
		<item>
			<title><![CDATA[hi. my script has error in sysprep. any expert guy knows script?]]></title>
			<link>http://forum.driverpacks.net/viewtopic.php?pid=41812#p41812</link>
			<description><![CDATA[<p>------------------------</p><p>&#039; CheckForIntel.vbs<br />&#039; Checks if the processor is an Intel and re-enables the power managment driver if it is.<br />&#039; Written by Ryan D - based off the WMI sample script by Guy Thomas <a href="http://computerperformance.co.uk">http://computerperformance.co.uk</a>/<br />&#039; <br />&#039; ===Version History===<br />&#039; 1.0 - Initial release<br />&#039; 1.1 - Changed the way that the script checks for Intel machines. Now it looks at the CPU type and looks<br />&#039;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;to see if the string &quot;GenuineIntel&quot; is present.<br />&#039; --------------------------------------------------------------&#039; <br />option explicit<br />const HKEY_LOCAL_MACHINE = &amp;H80000002<br />dim objWMIService, objItem, colItems, strComputer, compModel, strKeyPath, strValueName, strValue, oReg</p><p>strKeyPath = &quot;SYSTEM\ControlSet001\Services\intelppm&quot;<br />strValueName = &quot;Start&quot;<br />strValue = &quot;1&quot;<br />strComputer = &quot;.&quot;</p><p>&#039; WMI connection to Root CIM and get the computer type<br />set objWMIService = GetObject(&quot;winmgmts:\\&quot; _<br />&amp; strComputer &amp; &quot;\root\cimv2&quot;)<br />set colItems = objWMIService.ExecQuery(_<br />&quot;Select Manufacturer from Win32_Processor&quot;)</p><p>&#039;Loop through the results and store the type in compModel<br />for each objItem in colItems<br />compModel = objItem.Manufacturer<br />next</p><p>&#039;Get a registry object<br />Set oReg=GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot; &amp; strComputer &amp; &quot;\root\default:StdRegProv&quot;)</p><br /><br /><p>&#039;Check the computer type. If the processor is an Intel, then re-enable the driver<br />if compModel = &quot;GenuineIntel&quot; then<br />&nbsp; &nbsp; oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue<br />else<br />&nbsp; &nbsp; <br />end if</p><p>wmic cpu get Manufacturer | findstr /i intel<br />if &quot;%errorlevel%&quot; == &quot;0&quot; (sc config intelppm start= system)</p><p>&#039; Exit<br />WSCript.Quit<br />-----------------------------------------------------<br />ok<br />first, i ran a script to disable intelppm and it said &quot;invalid key name&quot;. so the key isn&#039;t existed in my registry</p><p>echo Enabling image for AMD and Intel processors<br />reg add &quot;HKLM\SYSTEM\ControlSet001\Services\intelppm&quot; /v Start /t REG_DWORD /d 4 /f</p><p>so, the above command isn&#039;t working. So i worry about intelppm. then i run this before i sysprep it:</p><p>sc config intelppm start= disabled</p><p>This will disable intelppm.</p><p>Then i used above script and add these 2 lines:<br />wmic cpu get Manufacturer | findstr /i intel<br />if &quot;%errorlevel%&quot; == &quot;0&quot; (sc config intelppm start= system)</p><p>basically these 2 lines are doing the same. i add it because i use &quot;sc config intelppm start= disabled&quot;</p><p>so after i deploy the image and run the script, it said error in end of file.<br />i think those 2 lines cause errors. anyone know how to fix the 2 lines.<br />I found those 2 lines from other site and it is used to disable the intelppm.</p><p>The error message is &quot;expected end of statement&quot;<br />Please help me correct the last 2 lines. does it needs endif?</p>]]></description>
			<author><![CDATA[null@example.com (roadorange)]]></author>
			<pubDate>Tue, 21 Dec 2010 04:49:12 +0000</pubDate>
			<guid>http://forum.driverpacks.net/viewtopic.php?pid=41812#p41812</guid>
		</item>
	</channel>
</rss>
