12 replies
by ewgny
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\server\AdminLaser
WshNetwork.SetDefaultPrinter "\\server\AdminLaser"
by ewgny
This script will add printers and set your default
Add line 2 for each printer needed
save as a .vbs
by ewgny
I am currently trying to do the same (by group memberships) look at the newsgroup
microsoft.public.windows.server.scripting
There are a few recent discussions on mapping drives and adding printers according to group membership.
by ewgny
That works good. Could you expand on it a little and show me how to use group membership in a if then statement to map different printers to different groups.
I am fairly familiar with if then statement but not sure of the command to find the group. I am also thinking of using case instead for a cleaner script.
by shamalama
Here is a link for the script that worked for me
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B189105
Or if you have technet search for "printui.dll"
Hope this helped, Good luck
by hpoppe
I'm running Win2k and this script works fine here. What I do is to save thjis script as a .bat file in the startup folder og "all users" in Documents and settings.
Script:
rundll32 printui.dll, PrintUIEntry /ga /in /n \\Net_BIOS_name_of_print_server\Net_BIOS_Share_name
The last two parameters must be changed to the NetBIOS name of your printserver and the NetBIOS name of the shared printer.
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending