/
Net_AddPrinter
Net_AddPrinter
Description
Adds a network printer to the computer. Only printers on Windows networks are supported
Syntax
Net_AddPrinter(sPrinterShare, s9xPrinterDriver, bSetAsDefault) As Boolean
Parameters
sPrinterShare (String)
UNC path to the network printer
s9xPrinterDriver (String)
Printer driver name (only Windows 9x and ME)
bSetAsDefault (Boolean)
Set this printer as default printer
Example
VBScript
'Add a printer If bStatus Then bStatus = Net_AddPrinter("\\CAPAINSTALLER\PRINTERSHARE", "", True) 'Add a printer in Windows 9x/ME If bStatus Then bStatus = Net_AddPrinter("\\CAPAINSTALLER\PRINTERSHARE", "HP DeskJet 1200N", False)
Related functions
Net_SetDefaultPrinter Net_DeletePrinter Net_EnumPrinters Net_EnumPrinterPaths
, multiple selections available,
Related content
CMS_AddComputerToStaticGroup
CMS_AddComputerToStaticGroup
More like this
CMS_AddPackageToUnit
CMS_AddPackageToUnit
More like this
Net_Ping
More like this
Sys_GetSerialNumber
Sys_GetSerialNumber
More like this
$cs.Reg_ExistKey
$cs.Reg_ExistKey
More like this
$cs.Reg_SetInteger
$cs.Reg_SetInteger
More like this