Assigning Printers to Windows Vista Workstations

forcer

OSNN Senior Addict
Joined
Oct 18, 2002
Messages
413
I have a script that assigns printers to the workstations... it seems to be working fine when connecting printers to windows xp workstations, but not with windows vista.

I've tried a few combination's but either have no connection or it asks to install printer driver at logon but the printer still doesn't appear.

Code:
' Read security group membership
adsDomainGroups.Filter = Array("Group")
For Each adsGroup in adsDomainGroups
 Group = UCase(adsgroup.name)

UserName = UCase(WshNetwork.UserName)
server = "\\server" 'Change to match the users server

 If group = UCASE("staff") Then CheckGroup adsgroup.name, Username, home, server & "\staff$\" & UserName, "staff"
 Next
' Maps network drives
    WshNetwork.MapNetworkDrive "x:", server & "\shared"
    WshNetwork.MapNetworkDrive "s:", server & "\software"
    WshNetwork.MapNetworkDrive "y:", server & "\Childrens Shared"
[B]
' Adds classroom printers
        PrinterPath1 = server & "\ICT Suite"
        PrinterDriver1 = "Generic 35C-4 Series PS"
        Wshnetwork.addwindowsprinterconnection Printerpath1, Printerdriver1
        Wshnetwork.setdefaultprinter server & "\ICT Suite"[/B]
 

fitz

Woah.. I'm still here?
Staff member
Political User
Joined
Apr 26, 2004
Messages
4,084
are the printer drivers compatible with Vista? Can you add the printers manually while logged in as the user?
 

Members online

No members online now.

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
61,978
Messages
673,284
Members
89,058
Latest member
Topo