Solved

Printers for multiple users in Win2kPro

Posted on 2001-06-25
7
133 Views
Last Modified: 2010-04-13
All,

Anyone have any ideas on how to configure a printer for all users of one machine? Another Expert (Housenet) on the site has provided a WSH script that adds a printer for from the "All Users" profile which is great - the only drawback is that the printer must be in the standard Win2k Pro driver set. Does anyone know what steps to take in order to add a printer with drivers that aren't part of driver.cab??

Thanks,

Gareth
0
Comment
Question by:garethhumphreys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 12

Expert Comment

by:Housenet
ID: 6225451
Hey Gareth
-You could create a batch file with the following inserted

rundll32 printui,PrintUIEntry /in /n\\server\printer

* the command is case sensitive..must be PrintUIEntry

0
 

Author Comment

by:garethhumphreys
ID: 6227006
House,

Already had a look at the PrintUI thing, though there were so many options (and I've got a screaming customer here!) that I decided initially to run with your script, which has worked well on any printer with proprietry drivers. I'll let you know the outcome and credit you some points for your time...

Cheers,

Gareth
0
 
LVL 12

Expert Comment

by:Housenet
ID: 6227371
-You could use this .wsh version.. But really the only difference is that it has a GUI interface.

<package>
<job id="AddPrinter">
<object id="OSSHELL" progid="WScript.Shell"/>
<script id="AddPrinter" language="VBScript">
<![CDATA[

Dim p
p = InputBox("Network path to the printer to install", "Add Printer", "\\server\printer")

If p <> "" Then
  Dim cmd
  cmd = "rundll32 printui,PrintUIEntry /in /n" & p
 
  WScript.CreateObject("WScript.Shell").Run cmd
End If

]]>
</script>
</job>
</package>

-Save it as addprinter.wsh or something...
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

Author Comment

by:garethhumphreys
ID: 6228929
Housenet,

I managed to crack it...and it's the same for all of the other printers also. Basically I've used CON2PRT from the resource kit. I've written a batch file (addprn.bat) which basically lists this:

con2prt /cd \\servername\printer

And I've placed the batch file in the All Users profile. Secondly I added con2prt /F to the logon script. Th eresult is that each time a user logs on, all printers are deleted. Then as soon as the All Users profile is loaded the specified printer is re-connected. Simple, but it seems to be working. Thanks for your help again!

PS - If you want a blast of points let me know and I'll accept your final comment as an answer. I know how much you love your points!!!!
0
 
LVL 12

Expert Comment

by:Housenet
ID: 6229491
garethhumphreys keep your points... Just so we're clear here... I told you to post another question because it was to right thing to do.. I dont give a rats ass about points.
0
 
LVL 5

Expert Comment

by:cempasha
ID: 8237033
Dear questionner/expert(s)

No comment has been added lately, so it's time to clean up this TA.
I'll leave a recommendation in the Cleanup topic area that this question is to be:

- PAQ'd and pts refunded

Please leave any comments here within the next seven days.

==> PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER ! <==

PaSHa

Cleanup volunteer



0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 8280125
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Multi-threading long-running processes can have a significant increase in overall performance and drastically decrease over time it takes for a process to complete. Unfortunately, not all applications support native multi-threading, some by design a…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question