RE: [Unattended] Unattended printer installation

2004-02-02 Thread Paul Griffith

Bug fix #1 -

To restore settings use the following:

rundll32 printui.dll,PrintUIEntry /Sr /n "csb2054-col PS" /a
"c:\drivers\printers\pdefs\2054c-ps.dat" d

Do not use options "2 7 c d g".

Paul





On Thu, 29 Jan 2004, Paul Griffith wrote:

>
> Well I found the answer to my own question thanks to google. In our labs
> we install both PCL and PS drivers for each printer. This can be fun ;-)
>
> To save settings to file:
> rundll32 printui.dll,PrintUIEntry /Ss /n "csb2054-col PS" /a "file.dat"
>
> To Restore all settings from a file
> rundll32 printui.dll,PrintUIEntry /Sr /n "csb2054-col PS" /a
> "c:\drivers\printers\pdefs\2054c-ps.dat" 2 7 c d g
>
> If you try to restore all the settings you will get a error. I think
> restoring the Security descriptor is what is causing the error. I found
> that if you restore with options "2 7 c d g" it work with out any errors.
>
>
> /Sr Restore printer settings from a file
> Store or restore printer settings option flags that must be placed at the end of 
> command:
> 2   PRINTER_INFO_2
> 7   PRINTER_INFO_7
> c   Color Profile
> d   PrinterData
> s   Security descriptor
> g   Global DevMode
> m   Minimal settings
> u   User DevMode
> r   Resolve name conflicts
> f   Force name
> p   Resolve port
>
> You can create a simple batch file to add the ports, create the printers
> and restore the  settings. If anyone whats to see what I have done let me
> know. I am still working out some bugs.
>
> Thanks
> Paul
>
>
> On Wed, 28 Jan 2004, Paul Griffith wrote:
>
> >
> > Just a follow up question as I debate using Ghost or the unattend package.
> > How do you or would you configure your printers? All the the printers I
> > deploy in the lab have the duplex option enabled and I notice that if I do
> > not enable duplex after I install the driver and make it the default on
> > the computer it prints in simplex mode (single sided).
> >
> >
> > Thanks
> > Paul
> >
> >
> >
> > On Tue, 27 Jan 2004, Tyler Hepworth wrote:
> >
> > > If you are on a domain and have point and print setup on your print servers,
> > > you can also use a simple vbscript to install the printers
> > >
> > > Set WshNetwork = CreateObject("WScript.Network")
> > > WshNetwork.AddWindowsPrinterConnection "\\printserver\printer_name"
> > >
> > > Put those lines in a .vbs file and then push the file onto todo.pl.  I wrote
> > > a patch to install.pl that gives me a multiple choice dialog of all the
> > > printers in my domain.  I can select which printers I want to be auto
> > > installed (during the initial setup dialog).  A .vbs file is then
> > > automatically created just like one above.  It contains all the printers
> > > that I chose during the dialog and is pushed into postinst.bat along with
> > > all the other items that need to be taken care of.  This is convenient for
> > > me since I have over 30 printers of which I might only install 2-3.
> > >
> > > -Original Message-
> > > From: Niels de Groot [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 23, 2004 3:07 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: [Unattended] Unattended printer installation
> > >
> > >
> > > Hi everybody,
> > >
> > > I just found an interesting page on the web about installing printers
> > > unattended.
> > > By pushing a commandline similar to the following onto todo.pl you can
> > > install shared printers very easily.
> > > (I may have made a mistake with the escaped quotes, but I think the idea is
> > > clear enough)
> > >
> > > todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if  /r
> > > \"\\server\printer\" /m \"description\""
> > >
> > > For more information you can run "rundll32 printui.dll,PrintUIEntry /?"
> > > from a Windows 2000/XP commandline, or check Microsoft knowledgebase
> > > articles 314486 and/or 189105
> > >
> > > You could also wrap this into an optional package by adding your favorite
> > > printers to a batch file in the \scripts directory...
> > >
> > > :: OPTIONAL: Install default network printers
> > > todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if  /r
> > > \"\\server\printer\" /m \"description\""
> > >
> > >
> > > This works best if the drivers needed are on the printserver. If not you
> > > can use for exapmle Windows built-in drivers by adding a few options to the
> > > commandline. Check the knowledge base for more details.
> > >
> > > Niels de Groot,
> > > [EMAIL PROTECTED]
> > >
> > >
> > > ---
> > > The SF.Net email is sponsored by EclipseCon 2004
> > > Premiere Conference on Open Tools Development and Integration See the
> > > breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > > http://www.eclipsecon.org/osdn
> > > ___
> > > unattended-info mailing list [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/un

RE: [Unattended] Unattended printer installation

2004-01-30 Thread Paul Griffith

Well I found the answer to my own question thanks to google. In our labs
we install both PCL and PS drivers for each printer. This can be fun ;-)

To save settings to file:
rundll32 printui.dll,PrintUIEntry /Ss /n "csb2054-col PS" /a "file.dat"

To Restore all settings from a file
rundll32 printui.dll,PrintUIEntry /Sr /n "csb2054-col PS" /a
"c:\drivers\printers\pdefs\2054c-ps.dat" 2 7 c d g

If you try to restore all the settings you will get a error. I think
restoring the Security descriptor is what is causing the error. I found
that if you restore with options "2 7 c d g" it work with out any errors.


/Sr Restore printer settings from a file
Store or restore printer settings option flags that must be placed at the end of 
command:
2   PRINTER_INFO_2
7   PRINTER_INFO_7
c   Color Profile
d   PrinterData
s   Security descriptor
g   Global DevMode
m   Minimal settings
u   User DevMode
r   Resolve name conflicts
f   Force name
p   Resolve port

You can create a simple batch file to add the ports, create the printers
and restore the  settings. If anyone whats to see what I have done let me
know. I am still working out some bugs.

Thanks
Paul


On Wed, 28 Jan 2004, Paul Griffith wrote:

>
> Just a follow up question as I debate using Ghost or the unattend package.
> How do you or would you configure your printers? All the the printers I
> deploy in the lab have the duplex option enabled and I notice that if I do
> not enable duplex after I install the driver and make it the default on
> the computer it prints in simplex mode (single sided).
>
>
> Thanks
> Paul
>
>
>
> On Tue, 27 Jan 2004, Tyler Hepworth wrote:
>
> > If you are on a domain and have point and print setup on your print servers,
> > you can also use a simple vbscript to install the printers
> >
> > Set WshNetwork = CreateObject("WScript.Network")
> > WshNetwork.AddWindowsPrinterConnection "\\printserver\printer_name"
> >
> > Put those lines in a .vbs file and then push the file onto todo.pl.  I wrote
> > a patch to install.pl that gives me a multiple choice dialog of all the
> > printers in my domain.  I can select which printers I want to be auto
> > installed (during the initial setup dialog).  A .vbs file is then
> > automatically created just like one above.  It contains all the printers
> > that I chose during the dialog and is pushed into postinst.bat along with
> > all the other items that need to be taken care of.  This is convenient for
> > me since I have over 30 printers of which I might only install 2-3.
> >
> > -Original Message-
> > From: Niels de Groot [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 23, 2004 3:07 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: [Unattended] Unattended printer installation
> >
> >
> > Hi everybody,
> >
> > I just found an interesting page on the web about installing printers
> > unattended.
> > By pushing a commandline similar to the following onto todo.pl you can
> > install shared printers very easily.
> > (I may have made a mistake with the escaped quotes, but I think the idea is
> > clear enough)
> >
> > todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if  /r
> > \"\\server\printer\" /m \"description\""
> >
> > For more information you can run "rundll32 printui.dll,PrintUIEntry /?"
> > from a Windows 2000/XP commandline, or check Microsoft knowledgebase
> > articles 314486 and/or 189105
> >
> > You could also wrap this into an optional package by adding your favorite
> > printers to a batch file in the \scripts directory...
> >
> > :: OPTIONAL: Install default network printers
> > todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if  /r
> > \"\\server\printer\" /m \"description\""
> >
> >
> > This works best if the drivers needed are on the printserver. If not you
> > can use for exapmle Windows built-in drivers by adding a few options to the
> > commandline. Check the knowledge base for more details.
> >
> > Niels de Groot,
> > [EMAIL PROTECTED]
> >
> >
> > ---
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and Integration See the
> > breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > http://www.eclipsecon.org/osdn
> > ___
> > unattended-info mailing list [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/unattended-info
> >
> >
> > ---
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and Integration
> > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > http://www.eclipsecon.org/osdn
> > ___
> > unattended-info mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/unattende

RE: [Unattended] Unattended printer installation

2004-01-28 Thread Paul Griffith

Just a follow up question as I debate using Ghost or the unattend package.
How do you or would you configure your printers? All the the printers I
deploy in the lab have the duplex option enabled and I notice that if I do
not enable duplex after I install the driver and make it the default on
the computer it prints in simplex mode (single sided).


Thanks
Paul



On Tue, 27 Jan 2004, Tyler Hepworth wrote:

> If you are on a domain and have point and print setup on your print servers,
> you can also use a simple vbscript to install the printers
>
> Set WshNetwork = CreateObject("WScript.Network")
> WshNetwork.AddWindowsPrinterConnection "\\printserver\printer_name"
>
> Put those lines in a .vbs file and then push the file onto todo.pl.  I wrote
> a patch to install.pl that gives me a multiple choice dialog of all the
> printers in my domain.  I can select which printers I want to be auto
> installed (during the initial setup dialog).  A .vbs file is then
> automatically created just like one above.  It contains all the printers
> that I chose during the dialog and is pushed into postinst.bat along with
> all the other items that need to be taken care of.  This is convenient for
> me since I have over 30 printers of which I might only install 2-3.
>
> -Original Message-
> From: Niels de Groot [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 23, 2004 3:07 PM
> To: '[EMAIL PROTECTED]'
> Subject: [Unattended] Unattended printer installation
>
>
> Hi everybody,
>
> I just found an interesting page on the web about installing printers
> unattended.
> By pushing a commandline similar to the following onto todo.pl you can
> install shared printers very easily.
> (I may have made a mistake with the escaped quotes, but I think the idea is
> clear enough)
>
> todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if  /r
> \"\\server\printer\" /m \"description\""
>
> For more information you can run "rundll32 printui.dll,PrintUIEntry /?"
> from a Windows 2000/XP commandline, or check Microsoft knowledgebase
> articles 314486 and/or 189105
>
> You could also wrap this into an optional package by adding your favorite
> printers to a batch file in the \scripts directory...
>
> :: OPTIONAL: Install default network printers
> todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if  /r
> \"\\server\printer\" /m \"description\""
>
>
> This works best if the drivers needed are on the printserver. If not you
> can use for exapmle Windows built-in drivers by adding a few options to the
> commandline. Check the knowledge base for more details.
>
> Niels de Groot,
> [EMAIL PROTECTED]
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration See the
> breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> unattended-info mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unattended-info
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> unattended-info mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unattended-info
>

-- 
Paul Griffith | York University, Dept. of Computer Science CSB1003A
CS Technical Team | 4700 Keele Street,Toronto, Ontario, Canada M3J 1P3
[EMAIL PROTECTED] | Phone: 416-736-2100 x70258 Fax: 416-736-5872


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Unattended printer installation

2004-01-28 Thread Tyler Hepworth
Well, I have never given much thought to that question, but I suppose my
simple vbscript would not address that issue.  However, I was reading up on
Neils' post about "rundll32 printut.dll" and one of the options is has is to
store and restore printer settings from a file.  So, I think it would be
possible to configure the printer and then store its settings.  Then, when
you pass the rundll32 command to todo.pl, one of the options would be to
restore printer settings from the file.  I can't confirm this, but this
appears to be the case from what little reading I have done.

Tyler



-Original Message-
From: Paul Griffith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 7:19 AM
To: Tyler Hepworth
Cc: '[EMAIL PROTECTED]'
Subject: RE: [Unattended] Unattended printer installation



Just a follow up question as I debate using Ghost or the unattend package.
How do you or would you configure your printers? All the the printers I
deploy in the lab have the duplex option enabled and I notice that if I do
not enable duplex after I install the driver and make it the default on the
computer it prints in simplex mode (single sided).


Thanks
Paul



On Tue, 27 Jan 2004, Tyler Hepworth wrote:

> If you are on a domain and have point and print setup on your print 
> servers, you can also use a simple vbscript to install the printers
>
> Set WshNetwork = CreateObject("WScript.Network") 
> WshNetwork.AddWindowsPrinterConnection "\\printserver\printer_name"
>
> Put those lines in a .vbs file and then push the file onto todo.pl.  I 
> wrote a patch to install.pl that gives me a multiple choice dialog of 
> all the printers in my domain.  I can select which printers I want to 
> be auto installed (during the initial setup dialog).  A .vbs file is 
> then automatically created just like one above.  It contains all the 
> printers that I chose during the dialog and is pushed into 
> postinst.bat along with all the other items that need to be taken care 
> of.  This is convenient for me since I have over 30 printers of which 
> I might only install 2-3.
>
> -Original Message-
> From: Niels de Groot [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 23, 2004 3:07 PM
> To: '[EMAIL PROTECTED]'
> Subject: [Unattended] Unattended printer installation
>
>
> Hi everybody,
>
> I just found an interesting page on the web about installing printers 
> unattended. By pushing a commandline similar to the following onto 
> todo.pl you can install shared printers very easily.
> (I may have made a mistake with the escaped quotes, but I think the idea
is
> clear enough)
>
> todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if  /r 
> \"\\server\printer\" /m \"description\""
>
> For more information you can run "rundll32 printui.dll,PrintUIEntry 
> /?" from a Windows 2000/XP commandline, or check Microsoft 
> knowledgebase articles 314486 and/or 189105
>
> You could also wrap this into an optional package by adding your 
> favorite printers to a batch file in the \scripts directory...
>
> :: OPTIONAL: Install default network printers
> todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if  /r 
> \"\\server\printer\" /m \"description\""
>
>
> This works best if the drivers needed are on the printserver. If not 
> you can use for exapmle Windows built-in drivers by adding a few 
> options to the commandline. Check the knowledge base for more details.
>
> Niels de Groot,
> [EMAIL PROTECTED]
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration See the 
> breadth of Eclipse activity. February 3-5 in Anaheim, CA. 
> http://www.eclipsecon.org/osdn 
> ___
> unattended-info mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unattended-info
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration See the 
> breadth of Eclipse activity. February 3-5 in Anaheim, CA. 
> http://www.eclipsecon.org/osdn 
> ___
> unattended-info mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unattended-info
>

-- 
Paul Griffith | York University, Dept. of Computer Science CSB1003A
CS Technical Team | 4700 Keele Street,Toronto, Ontario, Canada M3J 1P3
[EMAIL PROTECTED] | Phone: 416-736-2100 x70258 Fax: 416-736-5872


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Unattended printer installation

2004-01-27 Thread Adam Peart

I wrote
a patch to install.pl that gives me a multiple choice dialog of all the
printers in my domain.  I can select which printers I want to be auto
installed (during the initial setup dialog).  A .vbs file is then
automatically created just like one above.  It contains all the printers
that I chose during the dialog and is pushed into postinst.bat along with
all the other items that need to be taken care of.  This is convenient for
me since I have over 30 printers of which I might only install 2-3.
If you can post it it would be nice to have that patch because it would be 
interesting to use.



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Unattended printer installation

2004-01-27 Thread Tyler Hepworth
If you are on a domain and have point and print setup on your print servers,
you can also use a simple vbscript to install the printers

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\printserver\printer_name"

Put those lines in a .vbs file and then push the file onto todo.pl.  I wrote
a patch to install.pl that gives me a multiple choice dialog of all the
printers in my domain.  I can select which printers I want to be auto
installed (during the initial setup dialog).  A .vbs file is then
automatically created just like one above.  It contains all the printers
that I chose during the dialog and is pushed into postinst.bat along with
all the other items that need to be taken care of.  This is convenient for
me since I have over 30 printers of which I might only install 2-3.

-Original Message-
From: Niels de Groot [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 23, 2004 3:07 PM
To: '[EMAIL PROTECTED]'
Subject: [Unattended] Unattended printer installation


Hi everybody,

I just found an interesting page on the web about installing printers 
unattended.
By pushing a commandline similar to the following onto todo.pl you can 
install shared printers very easily.
(I may have made a mistake with the escaped quotes, but I think the idea is 
clear enough)

todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if  /r 
\"\\server\printer\" /m \"description\""

For more information you can run "rundll32 printui.dll,PrintUIEntry /?" 
from a Windows 2000/XP commandline, or check Microsoft knowledgebase 
articles 314486 and/or 189105

You could also wrap this into an optional package by adding your favorite 
printers to a batch file in the \scripts directory...

:: OPTIONAL: Install default network printers
todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if  /r 
\"\\server\printer\" /m \"description\""


This works best if the drivers needed are on the printserver. If not you 
can use for exapmle Windows built-in drivers by adding a few options to the 
commandline. Check the knowledge base for more details.

Niels de Groot,
[EMAIL PROTECTED]


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the
breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info