Exportovat (0) Tisk
Rozbalit vše
Arp
At
Cd
Cls
Cmd
Del
Dir
Fc
For
Ftp
If
Ldp
Lpq
Lpr
Md
Mmc
Msg
Nlb
Rcp
Rd
Reg
Rem
Ren
Rsh
Rsm
Rss
Sc
Set
Sfc
Ver
Vol
Expand Minimize
Toto téma nebylo dosud ohodnoceno - Ohodnotit toto téma

Pubprn.vbs

Aktualizováno: duben 2012

Rozsah platnosti: Windows Server 2008, Windows Vista

Publishes a printer to the Active Directory Domain Services.

For examples of how this command can be used, see Examples.

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

 

Parameter Description

<ServerName>

Specifies the name of the Windows server that hosts the printer that you want to publish. If you do not specify a computer, the local computer is used.

<UNCPrinterPath>

The Universal Naming Convention (UNC) path to the shared printer that you want to publish.

"LDAP://CN=<Container>,DC=<Container>"

Specifies the path to the container in Active Directory Domain Services where you want to publish the printer.

/?

Displays help at the command prompt.

  • The Pubprn.vbs command is a Visual Basic script located in the %WINDIR%\System32\Printing_Admin_Scripts\<language> directory. To use this command, at a command prompt, type Cscript followed by the full path to the Pubprn.vbs file, or change directories to the appropriate folder. For example:

    Cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\Pubprn.vbs
    
  • If the information that you supply contains spaces, use quotation marks around the text (for example, "Computer Name").

To publish all printers on the \\Server1 computer to the MyContainer container in the MyDomain.Company.Com domain, type:

Cscript Ppubprn.vbs Server1 "LDAP://CN=MyContainer,DC=MyDomain,DC=Company,DC=Com"

To publish the LaserPrinter1 printer on the \\Server1 server to the MyContainer container in the MyDomain.Company.Com domain, type:

Cscript Ppubprn.vbs \\Server1\LaserPrinter1 "LDAP://CN=MyContainer,DC=MyDomain,DC=Company,DC=Com"

Byl tento obsah pro vás užitečný?
(Zbývající počet znaků: 1500)
Děkujeme za váš názor.

Obsah vytvořený komunitou

Přidat
Zobrazit:
© 2014 Microsoft. Všechna práva vyhrazena.