Re: Silent or sysocmgr install of 2003 R2 Hardware Management Feature
- From: evan.ziemann@xxxxxxxxx
- Date: 7 Aug 2006 07:46:10 -0700
Thanks for the help
Here is the vbscript subroutine and the .txt file I used. It took a
few tweaks to get going. Just wanted to post a working solution for
others.
Public Sub R2HWMgmt()
Const HKEY_LOCAL_MACHINE = &H80000002
sho.RegWrite
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SourcePath",
SysDrive & "\INSTALL", "REG_SZ"
sho.RegWrite
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\ServicePackSourcePath",
SysDrive & "\INSTALL", "REG_SZ"
Dim aValues
aValues = Array("C:\INSTALL", "C:\INSTALL\I386",
"C:\INSTALL\CMPNENTS\R2")
sKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Setup"
sMultiValueKey = "Installation Sources"
Set
oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
oReg.SetMultiStringValue HKEY_LOCAL_MACHINE, sKey, sMultiValueKey,
aValues
ManufacCheck =
UCase((GetObject("WinMgmts:Win32_ComputerSystem='.').Manufacturer))
If InStr(ManufacCheck, "DELL") Then
sho.Run "C:\WINDOWS\System32\sysocmgr /i:C:\WINDOWS\inf\sysoc.inf
/u:C:\INSTALL\SCRIPTS\Settings\HWMgmt.txt",,1
wscript.sleep 3000
sho.Run "cmd.exe /c rundll32 ipmisetp.dll, AddTheDevice",,1
End If
End Sub
HWmgmt.txt:
[Components]
HWMgmt = On
.
- References:
- Silent or sysocmgr install of 2003 R2 Hardware Management Feature
- From: evan . ziemann
- RE: Silent or sysocmgr install of 2003 R2 Hardware Management Feature
- From: "Darrell Gorter[MSFT]"
- Silent or sysocmgr install of 2003 R2 Hardware Management Feature
- Prev by Date: Re: Installing Win Srvr 2003 over Win XP
- Next by Date: IE Trusted Sites empty after unattended install
- Previous by thread: RE: Silent or sysocmgr install of 2003 R2 Hardware Management Feature
- Next by thread: Re: POP Server Help!!
- Index(es):