Hi Dangerous
I searched but could not find the reference here but since it was posted in 2004 it may not be searchable anymore
here is an example of a batch/cmd file to create a VBS script which starts the jet direct port on your running BartPE
you probably also need a collection of plugins:-
Joshua's printer plugin or similar,
windows scripting host WSH plugin,
Paragliders hwpnp
Sherpya's post processing plugin + updated version of infcachebuild
working network driver & connection
and details of IP address of printer it goes direct to Printer not via Print Server
a Laser Jet III or 5P printer driver should work for many modern laser printers
regards
Mike Barnes
jetdirect.cmd
CODE
REM HPLJ2100 an TCP/IP-Port
@ECHO OFF
rem author biene2099 16 Oct 2004
rem IP address updated June 2004
CLS
rem remmed out as requires modifications to other plugins to work MBarnes
rem echo check Printers installed
rem if not exist %ramdrv%\SPOOLflag call x:\Programs\printers\InstallPrinterIII.cmd
rem echo Print Spooler OK
rem echo check WSH started
rem if not exist %ramdrv%\WSHflag call %WinDir%\System32\startWSH.cmd
rem echo WSH ok
color 0e
REM ***********************************************************************
TITLE [HP-LJ-4 9050dn a TCP/IP-Port Installer (10.21.202.54)]
REM ***********************************************************************
:: die DLL aus dem Recourcekit registrieren
START /wait regsvr32 /s %WINDIR%\System32\Prnadmin.dll
:: Eine VBS Datei erstellen die den Printerport erzeugt
ECHO > %ramdrv%\printer54.vbs Set WshShell = Wscript.CreateObject("Wscript.Shell")
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs const kTcpRaw = 1
ECHO >> %ramdrv%\printer54.vbs const kTcpLPr = 2
ECHO >> %ramdrv%\printer54.vbs const kLocal = 3
ECHO >> %ramdrv%\printer54.vbs const kLocalDownLevel = 4
ECHO >> %ramdrv%\printer54.vbs const kLprMon = 5
ECHO >> %ramdrv%\printer54.vbs const kHPdlc = 7
ECHO >> %ramdrv%\printer54.vbs const kUnknown = 8
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs const kStdTCPIP = "Standard TCP/IP Port"
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs dim oPort
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs dim oMaster
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs set oPort = CreateObject("Port.Port.1")
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs set oMaster = CreateObject("PrintMaster.PrintMaster.1")
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs On Error Resume Next
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs oPort.ServerName = ""
rem default name [HPLJ2100 Port] ok ?
ECHO >> %ramdrv%\printer54.vbs oPort.PortName = "HPLJ-9050dn Port"
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs oMaster.PortDel oPort
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs On Error GoTo 0
ECHO.>> %ramdrv%\printer54.vbs
rem user specific
ECHO >> %ramdrv%\printer54.vbs oPort.PortName = "HPLJ-9050dn Port"
ECHO >> %ramdrv%\printer54.vbs oPort.SNMPDeviceIndex = "1"
ECHO >> %ramdrv%\printer54.vbs oPort.CommunityName = "public"
rem ECHO >> %ramdrv%\printer54.vbs oPort.HostAddress = "abc.def.ghi.jkl"
rem must set up port
ECHO >> %ramdrv%\printer54.vbs oPort.HostAddress = "10.21.202.54"
ECHO >> %ramdrv%\printer54.vbs oPort.QueueName = 9100
ECHO >> %ramdrv%\printer54.vbs oPort.PortType = kTcpRaw
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs oMaster.PortAdd oPort
ECHO.>> %ramdrv%\printer54.vbs
REM mit dem VBS Scrpit den Printerport erstellen
echo.
echo Now Starting TCP/IP Port ....
%ramdrv%
cd \
start printer54.vbs
rem start /wait printer54.vbs
rem DEL /s /f /q %ramdrv%\Printer54.vbs >NUL 2>&1
echo.
echo Jet Direct Printer Port for HP LJ 9050dn at (10.21.202.54) Ready ....
rem - Sleep for 00:00:05
echo.
echo.
pause
EXIT