Changes

Printer configuration

705 bytes added, 14:42, 28 November 2008
Updated WPKG entry with check, uninstall, upgrade sections
<source lang="dos">
rundll32 printui.dll,PrintUIEntry /q /y /ga /in /n \\serverservername\kyoceraprintername
</source>
with the appropriate servername and printername. Will set installed printer as default.
This has a drawback, that it'll be used by all machinesand run with user permissions. If you are adding non-domain printer to workstation in domain, make sure that point and print [http://support.microsoft.com/kb/319939 restrictions] are disabled.
To install a printer on certain workstations only, a WPKG entry like below could be used:
<source lang="xml">
<packagepackages> <package id="printer-kyocera" name="Kyocera printerroom 17"revision="1" priority="0" reboot="false"> execute <check type="alwaysregistry"condition="equals" path="HKLM\SYSTEM\CurrentControlSet\Control\Print\Connections\,,servername,printername\Server" value="\\servername" /> <install cmd="rundll32 printui.dll,PrintUIEntry /ga /n\\servername\printername" /> <install cmd='"net stop spooler" /> <install cmd="net start spooler" /> <remove cmd="rundll32 printui.dll,PrintUIEntry /q gd /y n\\servername\printername" /ga > <remove cmd="net stop spooler" /in > <remove cmd="net start spooler" /> <upgrade cmd="rundll32 printui.dll,PrintUIEntry /ga /n \\serverservername\kyocera' printername" /> <upgrade cmd="net stop spooler" /> <upgrade cmd="net start spooler" /> </package></packages>
</source>
This ensures that it will be executed each time the workstation is bootedMore silent printer installation options [http://wwwThen, add the same line (rundll32 printuimsfn.dll,org/board/lofiversion/index.php/t43120..) to user logon scriptshtml here].
After the machine is restarted, it should be able to use a new printer.
[[category:Silent Installers|Printer configuration]]
[[Category: Changing Windows settings]]
23
edits