Guest pburchell Posted February 20, 2007 Posted February 20, 2007 Who can fix my first post here !! I am currently trying to deploy this software using the msi no toolbar package. The problem is it installs the printer as the default printer. For networked printers I have used a batch file to install them rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2 @Echo off REM stop the print spooler on the specified computer and wait until the sc command finishes @Echo On start /wait sc \\%1 stop spooler @Echo off I have also tried using this command to force a network printer to be the default with /y command. This only works if the pdf creater is not installed. The minute I redeploy the pdf creater it sets all normal user accounts to have it as a default printer. any ideas ??
srochford Posted February 20, 2007 Posted February 20, 2007 Not quite sure what you're trying to do but we use code like the following in the login script to connect a particular network printer and make it default - change sPrinter to be the relevant printer name. Save it as (say) mapprint.vbs sPrinter="\\server\printer" set oNet=createobject("wscript.network") oNet.addwindowsprinterconnection sPrinter oNet.setdefaultprinter sPrinter If you wanted to pass a printer as a paramter then you replace the first line: sPrinter=wscript.arguments.named("printer") and then just run the script with mapprint.vbs /printer:\\server\printer This will become the default rather than any local printer.
Guest pburchell Posted February 21, 2007 Posted February 21, 2007 Thanks for the reply Steve, running the script fixed my problem.
mrforgetful Posted February 21, 2007 Posted February 21, 2007 I used to run a script when the machine was set up but now just use R2s printer manangement. I dont even use a PDF printer any more always had trouble with them, now Office 2007 does it (albeit in it's limited installed base).
Geoff Posted February 21, 2007 Posted February 21, 2007 Don't forget as well, you can install PDF creator on your print server and share it that way.
NetworkGeezer Posted February 21, 2007 Posted February 21, 2007 Don't forget as well, you can install PDF creator on your print server and share it that way. How would that work. Wouldn't the ridirection occur at the server rather than the locally on the client?
NetworkGeezer Posted February 22, 2007 Posted February 22, 2007 redirection of what? When the print job is being sent from the print queue to a print device, output will be redirected to a PDF file on the server.
webman Posted February 22, 2007 Posted February 22, 2007 NetworkGeezer: IIRC With the server version you can configure the output directory based on users' environment variables.
NetworkGeezer Posted February 22, 2007 Posted February 22, 2007 NetworkGeezer: IIRC With the server version you can configure the output directory based on users' environment variables. Ah right. That makes more sense.
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