Property Name
SharedName
Property Type
String
Description
Gets and sets the shared name of the printer. This name is used by
remote users when connecting or sending print jobs to the
printer.
Remarks
The user must have administrative privileges on the print queue to
use this method.
Example
Dim PrintQueueInfo As IprintQueueInfo
'Get the IPrintQueueInfo interface. In the path HP DeskJet '500C is
the print queue.
Set printQueueInfo = GetObject ("NTDS://MSFT/MOON/HP DeskJet
500C")
'Change the shared name of the printer
printQueueInfo.SharedName = "DeskJet"
'Commit the changes to the print queue
PrintQueueInfo.SetInfo
See Also