Pubprn.vbs Command In Windows Server 2008

This article describes the command Pubprn.vbs in Windows Server 2008 operating system and syntax related with it.
  • 1682


Pubprn.vbs command in Windows Server 2008 is used to publishes a printer to the active directory domain services. Syntax used for Pubprn.vbs command is given below.


Cscript Pubprn.vbs {<ServerName> | <UNCPrinterPath>} "LDAP://CN=<Container>,DC=<Container>"

Parameters For Pubprn.vbs

Parameter Description
<ServerName> Defines the name of the Windows server that hosts the printer that you want to publish.
<UNCPrinterPath> The Universal Naming Convention (UNC) path to the shared printer that you want to publish.
"LDAP://CN=<Container>,DC=<Container>" Defines the path to the container in Active Directory Domain Services where you want to publish the printer.
/? Shows help at the command prompt.

Ask Your Question 

Got a programming related question? You may want to post your question here 


More Articles

© 2020 DotNetHeaven. All rights reserved.