Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Printers for multiple users in Win2kPro

Posted on 2001-06-25
7
Medium Priority
?
136 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

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…
Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

705 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