R1ch Posted December 10, 2007 Posted December 10, 2007 Hey all, Sure this is really simple for someone that's not me WinXP. I am sharing a usb printer on workstation1. How do I add it for all users on workstation 2? Thanks in advance, Rich.
mrforgetful Posted December 10, 2007 Posted December 10, 2007 Put the following in a text file then change the extension to .cmd rundll32 printui.dll,PrintUIEntry /ga /n\\HOSTCOMPUTER\PRINTERNAME start /wait sc \\%1 stop spooler start /wait sc \\%1 start spooler
R1ch Posted December 10, 2007 Author Posted December 10, 2007 You the man, I'll give that a go later. Thanks very much!
mrforgetful Posted December 10, 2007 Posted December 10, 2007 You'll need to reboot the computer after running it. You can use that to install any network shared printer to a computer for all users. If you need to remove the printer change the /ga to a /gd
R1ch Posted December 12, 2007 Author Posted December 12, 2007 Added local group policy via snapin for that workstation and put the printer.cmd script in the computer config startup folder but this hasn't worked for some reason. In the end I just went for \\hostname\printername as a scipt. Problem sorted now, thanks for your help, muchly appreciated
plock Posted December 12, 2007 Posted December 12, 2007 Out of interest, are you only looking to push this out to a couple of machines? If not, perhaps a more complex script similar to my one that will check the computers location in AD and then map the correct printer(s) accordingly? This can then be called up via a User Login Script or Startup Script I would imagine too. Give me a shout if you would like a copy of the script.
Michael Posted December 13, 2007 Posted December 13, 2007 Alternatively (for everyone's reference) you can add multiple print servers within Windows Server 2003 R2, then distribute it to particular users or computers (or both) within any number of OUs.
LazyD Posted November 11, 2010 Posted November 11, 2010 I know this thread is years old but thanks MrForgetful, this sorted out my printer problem. How can I add to this to make the printer in the command the default printer for all users?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now