Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with printers on another server using the following.

Status
Not open for further replies.

IanM

Technical User
Jul 25, 2000
1
GB
I use the following script to attempt to set up a default printer.<br><br>Set WshNetwork = Wscript.CreateObject(&quot;Wscript.Network&quot;)<br>WshNetwork.AddWindowsPrinterConnection &quot;\\Brent_PDC\Harles2&quot;<br><br>WshNetwork.SetDefaultPrinter &quot;\Harles2 on BRENT_PDC&quot;<br><br><br>The AddWindowsPrinterConnection works, After that in the printers folder on the local machine your running the script on there is a printer called &quot;Harles2 on BRENT_PDC&quot;.&nbsp;&nbsp;The SetDefaultPrinter line however reports<br>&quot;There is no printer called &quot;\Harles2 on BRENT_PDC&quot;.<br><br>How can I get it to recognise the new printer it has in its defaults???<br><br>Any help would be great.<br><br><A HREF="mailto:i.matthews@epixtech.co.uk">i.matthews@epixtech.co.uk</A><br><br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top