sys6x Posted April 20, 2007 Share Posted April 20, 2007 (edited) 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, 2007 by sys6x Link to comment Share on other sites More sharing options...
sys6x Posted April 23, 2007 Author Share Posted April 23, 2007 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. Link to comment Share on other sites More sharing options...
win2000b Posted April 24, 2007 Share Posted April 24, 2007 adxprint or con2prnt are the best ways to set up printers and default on logon. Link to comment Share on other sites More sharing options...
sys6x Posted April 24, 2007 Author Share Posted April 24, 2007 Isn't this something avaliable only from W2k3 R2? Because it's not on my 2k PDC or the XP clients Link to comment Share on other sites More sharing options...
sys6x Posted April 24, 2007 Author Share Posted April 24, 2007 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 Link to comment Share on other sites More sharing options...
nmX.Memnoch Posted April 26, 2007 Share Posted April 26, 2007 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? Link to comment Share on other sites More sharing options...
sys6x Posted April 26, 2007 Author Share Posted April 26, 2007 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. Link to comment Share on other sites More sharing options...
nmX.Memnoch Posted April 26, 2007 Share Posted April 26, 2007 Wouldn't happen to be an HP 1320 would it? Link to comment Share on other sites More sharing options...
sys6x Posted April 26, 2007 Author Share Posted April 26, 2007 haha, how did you guess?HP LJ 1320tn Link to comment Share on other sites More sharing options...
nmX.Memnoch Posted April 26, 2007 Share Posted April 26, 2007 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. Link to comment Share on other sites More sharing options...
sys6x Posted April 27, 2007 Author Share Posted April 27, 2007 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 Link to comment Share on other sites More sharing options...
nmX.Memnoch Posted April 27, 2007 Share Posted April 27, 2007 (edited) 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, 2007 by nmX.Memnoch 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