hi all
- From: "SameOld" <andrew_paiti@xxxxxxxxxxx>
- Date: Fri, 23 Dec 2005 10:45:40 +1300
trying to use this script to remove the internet connection wizard as part
of an unattended Windows 2k install
The problem is that it does not unload the hive at the end of the script?
loading the hive is not a problem. Strange thing is that when I run the
sript again, it does remove the hive?
Im confused? is there some bug i shoukd be a ware of?
Any ideas?
'/////////////////////////////////////////////////////////////////////////////
'//
'// Script File:
'//
'// RemoveICm2K.vbs
'//
'// This script prevents the Internet Connection Wizard from being
displayed.
'//
'// Notes:
'//
'// Typical modifications:
'// (None)
'//
'//////////////////////////////////////////////////////////////////////////////
' Initialization
set shell = CreateObject("Wscript.shell")
' Loads Default User Hive
shell.run ("%systemdrive%\local\reg.exe load HKU\temp
c:\Docume~1\Defaul~1\ntuser.dat")
' Deletes setupICWdesktop key
regPath1 =
"HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Runonce\^setupicwdesktop"
regPath2 =
"HKEY_USERS\temp\Software\Microsoft\Windows\CurrentVersion\Runonce\^setupicwdesktop"
shell.regdelete regpath1
shell.regdelete regpath2
' UnLoads Default User Hive
shell.run ("%systemdrive%\local\reg.exe unload HKU\Temp")
.
- Prev by Date: Re: How can I call a activex dll in my vbscript ?
- Next by Date: Re: hi all
- Previous by thread: How can I call a activex dll in my vbscript ?
- Next by thread: Re: hi all
- Index(es):
Relevant Pages
|