Solved

Printers for multiple users in Win2kPro

Posted on 2001-06-25
7
132 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
auto copy 8 618
Need the Best Data Leakage Protection (Cloud Based) 1 364
Locking down a taskpad 1 178
Terminal 2000 connection RDP 5 141
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…
This article was originally published on Monitis Blog, you can check it  here .   Some years back, I worked as the CTO.  During my tenure, I had a head of IT support reporting to me.  He did his job quite well and had a commendable sense of duty…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

697 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