Re: Running VB scripts on Windows PE

From: Mike Kolitz (mikekol_at_idontlikespam.mvps.org)
Date: 06/25/04


Date: Fri, 25 Jun 2004 18:37:45 -0500

You'll need to add support for WSH to Windows PE to make it work.
Look in the WINPE folder on the root of your Windows PE CD for the file
BUILDOPTIONALCOMPONENTS.VBS.

Here's the command line syntax:

---------------------------
Command-line arguments
---------------------------
The following command-line arguments are accepted by this script:

"/S:filepath" - alternate source location other than the CD-ROM drive.

Examples:

 /S:C:\

 -s:Z:\

 or

 -S:\\Myserver\Myshare

/D - Destination. Opposite of S - specifies build destination. Otherwise
files are placed on the desktop.

/ADO - Build ADO (ActiveX Database Objects) for Microsoft SQL Server
connectivity

/HTA - Build HTA (HTML Applications)

/WSH - Build WSH (Windows Script Host)

Note that if you do not specify which components, or you do not run this
script from the command-line, all optional components will be installed. If
you include HTA, WSH is includedautomatically, and cannot be removed.

/64 - build for Itanium. Generates scripts for Windows on the Itanium
Processor Family. Requires a copy of Windows XP 64-Bit Edition.

/Q - suppress dialogs. This will not confirm success, will notify on
failure.

/E - explore completed files. Open Explorer to the copied files (can use
with /Q).
---------------------------
OK
---------------------------

-- 
Mike Kolitz MCSE 2000
MS-MVP - Windows Setup / Deployment
"Rob" <anonymous@discussions.microsoft.com> wrote in message 
news:20c7d01c459a0$56ca1460$a401280a@phx.gbl...
> Can anyone tell how to run a VB script (wscript) on
> Windows PE?
>
> Thanks
> Rob
>
> 


Relevant Pages

  • Re: WSH Where to find it? And is it RichTxt32-like trouble maker?
    ... CScript.exe - that run a script. ... WSHOM.OCX, VBScript.dll, JScript.dll, ... pre-installed support running VBS and JS files. ... more up-to-date than BAT files when they started using Windows. ...
    (microsoft.public.vb.winapi)
  • Re: Script help needed
    ... username password login has been documented very well over the years. ... a little googling:groups (wsh ) here and there ... "This is on a windows 2003 domain " ... > I need this info so I can then, hopefully, write a script that adds the ...
    (microsoft.public.scripting.wsh)
  • Re: IPSec
    ... but it's a lot more friendly than the command-line. ... Microsoft Windows Networking ... there are no APIs available for manipulating IPSec policy. ... > Use of included script samples are subject to the terms specified at ...
    (microsoft.public.win2000.security)
  • Re: What is the difference between WSH, VBScript and WMI (and ADSI) ?
    ... WMI networking methods are only supported on Windows NT-based platforms, ... Network-Related WMI Methods Fail on Windows 95, Windows 98, Windows Me ... Explorer 4.0 or later with WSH and ADSI installed. ... Windows Script Host supports scripts that are written in Visual Basic ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: What is the difference between WSH, VBScript and WMI (and ADSI) ?
    ... WMI networking methods are only supported on Windows NT-based platforms, ... Network-Related WMI Methods Fail on Windows 95, Windows 98, Windows Me ... Explorer 4.0 or later with WSH and ADSI installed. ... Windows Script Host supports scripts that are written in Visual Basic ...
    (microsoft.public.windowsxp.help_and_support)