Assigning Printers to Windows Vista Workstations

forcer

OSNN Senior Addict
Joined
18 Oct 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?
Political Access
Joined
26 Apr 2004
Messages
4,088
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

Xie Electronic Punk Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. 🙁

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk Sazar Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz Electronic Punk Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk Sazar Electronic Punk wrote on Sazar's profile.
Where are you buddy?

Forum statistics

Threads
62,017
Messages
673,508
Members
5,636
Latest member
GLOCKTOR642
Back