Gekko_uk Posted October 9, 2005 Share Posted October 9, 2005 How can I get the clients to automatically map printers on the server, I tried the following but it didnt seem to work.Mapping them manually works fine.net use LPT1: \\logi\epson2net use LPT2: \\logi\epson1net use LPT3: \\logi\HP1Above was included in Bat login script.Other lines in script work fine.I ran it from command line, and it claimed LPT1 was already in use.even though no printers were installed.I assume the printer set as LPT1 is default?Many thanks Link to comment Share on other sites More sharing options...
chilifrei64 Posted October 9, 2005 Share Posted October 9, 2005 when you type just "net use" does it say what is using it? Link to comment Share on other sites More sharing options...
Smiley Posted October 9, 2005 Share Posted October 9, 2005 Use this to install the printer quietlyrundll32 printui.dll,PrintUIEntry /in /q /n\\servername\printernameUse this to set the printer as the default printerrundll32 printui.dll,PrintUIEntry /y /n\\servername\printername Run this for a full list of what printui can dorundll32 printui.dll,PrintUIEntry /? Link to comment Share on other sites More sharing options...
amfony Posted October 10, 2005 Share Posted October 10, 2005 why do we use rundll32 printui.dll instead of a vbs liek this?Dim netSet net = CreateObject("WScript.Network") net.AddWindowsPrinterConnection "\\server\printer"net.SetDefaultPrinter "\\server\printer" Link to comment Share on other sites More sharing options...
tjhart85 Posted October 11, 2005 Share Posted October 11, 2005 why do we use rundll32 printui.dll instead of a vbs liek this?Wow, that works really well! THANKS! Link to comment Share on other sites More sharing options...
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