@echo off
setlocal
for /f %%a in (CompPrinterConf.txt) do (
@echo starting pnpport on %%a
cscript.exe "C:\windows\system32\Printing_Admin_Scripts\en-US\prnport.vbs" -a -s %%a -r "printer1" -h hostname -o raw -n 9100
@echo Waiting 5 seconds
timeout 5
@echo starting setting MyPrinter on %%a
cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p "Myprinter" -m "Generic / text only" -r "printer1" -s %%a
REM Not really needed, because the script will continue with the next machine
REM timeout 5
)
VBScript (Visual Basic Scripting Edition) is an interpreted scripting language developed by Microsoft that is modeled on Visual Basic, but with some important differences. VBScript is commonly used for automating administrative and other tasks in Windows operating systems (by means of the Windows Script Host) and for server-side scripting in ASP web applications. It is also used for client-side scripting in Internet Explorer, specifically in intranet web applications.
TRUSTED BY
ASKER
The Script I posted already creates Standard TCP / IP Port...now sure why I posed that script.