Solved

Printers for multiple users in Win2kPro

Posted on 2001-06-25
7
127 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
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
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

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…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now