From a Windows command prompt:
schtasks /query
This will give you output of the current machine.
schtasks /query /s \\servername >>\\server\sharename\tasks\server1_tasks.csv
This will send the output to a file named server1_tasks.csv on a network share and each subsequent run, will append to this file.
Tuesday, April 28, 2009
Printing from Windows using IPP to CUPS
The scenario is this - you are using CUPS (Common Unix Printing System) and want to have central logging of all your printing. By using Internet Printing Protocol (IPP) you can set up your Windows hosts to print via IPP to CUPS.
Help available from here:
rundll32 printui.dll,PrintUIEntry /?
The process to install the printers can be accomplished via the add/printer wizard, but I am a command line guy so I use this for an HP 2605DN printer:
rundll32 printui.dll,PrintUIEntry /if /f "\\printserver\hppcp602.inf" /b "Printer on Printserver - 2605 PCL 6" /r "http://cupsprintserver:631/printers/printername" /m "HP Color LaserJet 2605 PCL 6"
The key to this is the last part - "HP Color LaserJet 2605 PCL 6" as this has to match the actual driver name that is listed in the .inf file verbatim.
Enjoy!
Help available from here:
rundll32 printui.dll,PrintUIEntry /?
The process to install the printers can be accomplished via the add/printer wizard, but I am a command line guy so I use this for an HP 2605DN printer:
rundll32 printui.dll,PrintUIEntry /if /f "\\printserver\hppcp602.inf" /b "Printer on Printserver - 2605 PCL 6" /r "http://cupsprintserver:631/printers/printername" /m "HP Color LaserJet 2605 PCL 6"
The key to this is the last part - "HP Color LaserJet 2605 PCL 6" as this has to match the actual driver name that is listed in the .inf file verbatim.
Enjoy!
Subscribe to:
Posts (Atom)
