hi all



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")





.



Relevant Pages

  • [CFT][RFC] Module auto-unloading solution.
    ... I put together the script at the end of this ... It won't try to unload ethernet drivers ... ## your kernel modules. ... # Create a regexp of ethernet modules. ...
    (Linux-Kernel)
  • HTC Components with > 512 bytes of javascript slow to unload
    ... When using large number of copies of a lightweight HTC behavior ... component to unload the page, ... If I shrink the javascript code below the 512 byte limit, ... The 512 byte limit only affects the contents of the <script ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: 2 simple questions about SKILL language
    ... how to undefine it without exiting icfb? ... You cannot "unload" a script. ...
    (comp.cad.cadence)
  • Re: Tuning advice needed - IDS 11.5.FC1
    ... Each database is in its own dbspace. ... purpose is to unload each database for archiving. ... I use a script that calls dbaccess and uses the unload command ... The server also houses the live instance. ...
    (comp.databases.informix)
  • Re: Reload all included javascript src
    ... Executing that script one time after the page loads would be the limit. ... and loadJSFile load the file again. ...
    (comp.lang.javascript)

Quantcast