Solved

Printers for multiple users in Win2kPro

Posted on 2001-06-25
7
128 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Note: This is the third blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   We’ve been talki…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 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

16 Experts available now in Live!

Get 1:1 Help Now