Producing an Example by Querying a Windows Box
We could run
rpcclient
with a
getdriver
or a
getprinter
subcommand (in level 3 verbosity) against it. Just sit down at a UNIX or Linux
workstation with the Samba utilities installed, then type the following command:
root#
rpcclient -U'user%secret' NT-SERVER -c 'getdriver printername 3'
From the result it should become clear which is which. Here is an example from my installation:
root#
rpcclient -U'Danka%xxxx' W200xSERVER \
-c'getdriver "DANKA InfoStream Virtual Printer" 3'
cmd = getdriver "DANKA InfoStream Virtual Printer" 3
[Windows NT x86]
Printer Driver Info 3:
Version: [2]
Driver Name: [DANKA InfoStream]
Architecture: [Windows NT x86]
Driver Path: [C:\WINNT\System32\spool\DRIVERS\W32X86\2\PSCRIPT.DLL]
Datafile: [C:\WINNT\System32\spool\DRIVERS\W32X86\2\INFOSTRM.PPD]
Configfile: [C:\WINNT\System32\spool\DRIVERS\W32X86\2\PSCRPTUI.DLL]
Helpfile: [C:\WINNT\System32\spool\DRIVERS\W32X86\2\PSCRIPT.HLP]
Dependentfiles: []
Dependentfiles: []
Dependentfiles: []
Dependentfiles: []
Dependentfiles: []
Dependentfiles: []
Dependentfiles: []
Monitorname: []
Defaultdatatype: []
Some printer drivers list additional files under the label
Dependentfiles
, and these
would go into the last field
ListOfFiles,Comma-separated
. For the CUPS PostScript
drivers, we do not need any (nor would we for the Adobe PostScript driver); therefore, the field will get a
“NULL” entry.
|