April 20, 200719 yr Hi,I'm setting up a new AD tree organization and now using GPOs (the company never used them before) with a W2k Server PDC.In my GPOs, there are scripts running to attach a printer to the computer and set it by default. Everything is working fine until I have this user that has an exception. So, I need to set another printer by default, in the user logon script. The thing is..it adds the printer but it doesn't set it by default... I guess you can't set more than once a default printer in ALL the logon scripts?I'm using .cmd batch scripts linked to a .vbs WSH scriptHow would you do this? I'm sure I could give more infos but dunno what...ask questions if needed!Thanks Edited April 24, 200719 yr by sys6x
April 23, 200719 yr Author OK, found out what to do finally...I don't define any default printer in the script...just add them and then the user (or me during the setup) will select the default printer.
April 24, 200719 yr Author Isn't this something avaliable only from W2k3 R2? Because it's not on my 2k PDC or the XP clients
April 24, 200719 yr Author OK finally it doesn't work...here is how I'm adding a printer via GPO with a vbs file :strComputer = "."Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colPrinters = objWMIService.ExecQuery _ ("Select * From Win32_Printer Where Local = TRUE")If colPrinters.Count = 0 Then Set objNetwork = CreateObject("WScript.Network") objNetwork.AddWindowsPrinterConnection "\\SERVER\PRINTER" objNetwork.SetDefaultPrinter "\\SERVER\PRINTER"End IfThe problem now is that I can't even use the printer (it adds it, no problem). It doesn't print a single page (but no error message) but when I want to access the configuration/properties of the printer, I'm getting this :Function address 0x3c6feed caused a protection fault. (exception code 0xc0000005) Some or all property pages(s) may not be displayed."A guess is that the printer is on the W2k PDC and the client computer is on XP and then it can't get XP drivers so it use 2k's, which causes this error. Is there a way to get the W2k PDC to be able to push WXP drivers?Thanks again
April 26, 200719 yr Well...first we need to determine if that actually is the problem. What happens if you delete the printer and manually re-connect it? Does it work properly then?
April 26, 200719 yr Author Naw, wasn't workingbut thanks, found out I had to update the drivers on the server...that fixed it and it was only for a specific kind of printer.
April 26, 200719 yr Lucky guess... Actually...I'm doing a side job for a friend and he's got a bunch of those on his network. Same situation...Win2k Server and WinXP clients. The drivers for them are horrid. We both did a little research and found you can use the HP 4050 drivers. It helped in his situation some but the print spooler is still acting up every few days (which is better than a few times a day). Fortunately we're in the process of setting up a new server that's running Server 2003 R2.HP also has their new Universal Print Driver but I haven't tried it yet.
April 27, 200719 yr Author Yeah I thought about trying the UPD...but then I found out it was just this lil' printer..not all of 'emI guess you tried installing/upgrading the drivers with XP's? That's what I did and it work'd
April 27, 200719 yr Yeah, we tried putting the latest drivers on the 2000 server. The 1320 drivers are just sloooooooow. Things sped up quite a bit when it was changed to use the 4050 driver though. Edited April 27, 200719 yr by nmX.Memnoch
Create an account or sign in to comment