Howdy! I have a situation. I have to install multiple TCPIP printers (not on a print server, just networked printers) in multiple locations using ZW. I know that 11.2 can do this using a Printer Policy, but we are running ZW 11.1a which does not (as far as I understand). We plan to upgrade to the latest version by the end of the year with a new box. For now, I'm OK creating a Bundle to install the printer on Windows 7 64-bit PCs. I have manage to do the install, but I can't see to set the printer as default or set the permissions. This is what I have done.... questions later.


Create Bundle "Install Printer Test" and on the INSTALL Tab:
1) "Install MSI - subinacl" - Installs the subinacl.msi package (as default) in C:\Program Files (x86)\Windows Resource Kits\Tools

NOTE: The "SubInACL" is a free Microsoft command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain. More info at Batch files - Manage permissions with SUBINACL
2) "Create/Delete Directory - MIS\Drivers" - Creates the "C:\MIS\Drivers"

3) "Copy Directory - Drivers to Local PC" - Copies the driver's directory on a server locally to "C:\MIS\Drivers"

4) "Run Script - Create Port" - It runs a DEFINED SCRIPT to create a Port on local PC for IP_10.5.6.17 as a DYNAMIC ADMINISTRATOR, that waits WHEN ACTION IS COMPLETED before next action.
Code:
cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_10.5.6.17 -h 10.5.6.17 -o raw
5) "Run Script - Install Driver" - It runs a DEFINED SCRIPT to install the driver on local PC as a DYNAMIC ADMINISTRATOR, that waits WHEN ACTION IS COMPLETED before next action.
Code:
cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prndrvr.vbs -a -m "HP Universal Printing PCL 5" -h "C:\MIS\Drivers\Printers\HP_Universal_Print_Driver_64bit" -i "C:\MIS\Drivers\Printers\HP_Universal_Print_Driver_64bit\hpcu130t.inf"
6) "Run Script - Install Printer" - It runs a DEFINED SCRIPT to install the printer on local PC (name "TEST PRINTER") as a DYNAMIC ADMINISTRATOR, that waits WHEN ACTION IS COMPLETED before next action.
Code:
cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p "TEST PRINTER" -r IP_10.5.6.17 -m "HP Universal Printing PCL 5"
7) "Run Script - Printer Permissions to Full Control" - It runs a DEFINED SCRIPT to set TEST PRINTER permissions to all Domain Users to Full Controll (using SubInACL) as a DYNAMIC ADMINISTRATOR, that waits WHEN ACTION IS COMPLETED before next action.
Code:
start C:\"Program Files (x86)"\"Windows Resource Kits"\Tools\SUBINACL.exe /verbose=1 /printer "TEST PRINTER" /grant="ALBEMARLE\Domain Users"=F
8) "Run Script - Set as Default Printer" - It runs a DEFINED SCRIPT to set TEST PRINTER as Default Printer as a DYNAMIC ADMINISTRATOR, that waits WHEN ACTION IS COMPLETED before next action.
Code:
PRINTUI.EXE /y /q /n "TEST PRINTER"
Now for the comments and questions.
1) If I create a batch file with line 4 to 8, everything works (if the SubInACL was installed.)
2) Items #2 through #6 work fine. I can print test pages, and through Windows set as default. I can't change settings (see below).
3) Item #7 does not run. I need this because the printer installs but has no Owner, thus Users can't set any particular settings... critical when printing into copiers.
4) Item #8 does not run. I need this to setup classrooms, which have only one printer. It would be nice if I could force this printer to be default to any User that logs into the PC.
5) Notice that #7 and #8 are EXE (instead of vbs scripts), so I'm assuming I made a mistake in coding.
6) I know my code is ugly... can I combine #4, 5 and 6 into one RUN SCRIPT?

I'm still learning much about ZENworks... please be gentle and assume I know NOTHING. Clear instructions would help. Thanks for all your help!