printer configure with rpcclient

# rpcclient scao1l01 -U root      ( it is samba root user)

#rpcclient $> enumprinters   ### list printers queue installed
        flags:[0x800000]
        name:[\\sca01l01\PCAGRB01]
        description:[\\sca01l01\PCAGRB01,IBM Infoprint 1000 Series PS3,PCAGRB01]
        comment:[PCAGRB01]
#rpcclient $> enumdrivers     ###list drivers installed on the server scao1l01
[Windows NT x86]
Printer Driver Info 1:
        Driver Name: [IBM Infoprint 1000 Series PS3]

#rpcclient $> setdriver IPCA02C2 "IBM Infoprint Color 1567 PS3"
result was WERR_ACCESS_DENIED   # check /etc/samba/smb.conf and reload if the root has been taken away from access list.


 


 

你可能感兴趣的:(职场,configure,休闲,Printer,RPCclient)