Can't print until print spooler is restarted
We are testing Windows 7 befor deploying. We have found one issue, no matter if it's an upgrade or fesh install, users ocasionally can't print until the Local Print Spooler is restarted.1. Printers are mapped via VBS script (User logon)2. Print spooler shows as running3. No error in event log.4. Doesn't always happen.5. Print job vanishes into the etherWe are tasked with having this ready ASAP, any help would be greatful.
January 12th, 2010 10:07pm

What happens if the logon script isn't run and you manually map a printer? Same problem? Can you post the code here?"Fear disturbs your concentration"
Free Windows Admin Tool Kit Click here and download it now
January 12th, 2010 10:19pm

We haven't tried added the printers direct as the problem is sporadic.Here is the code for our printers, the data is read from AD and a CSV file.'Connect PrintersFor iCounter = iNumPrinters to 1 step -1 If CheckIfMember(aPrinters(1,iCounter),sComputerDN) or _ CheckIfMember(aPrinters(1,iCounter),sUserDN) Then oLogFile.WriteLine Now & " - Connecting printer: " & aPrinters(3,iCounter) & "..." err.Clear WshNetwork.AddWindowsPrinterConnection "\\" & aPrinters(2,iCounter) & "\" & aPrinters(3,iCounter) If err.number = 0 then oLogFile.WriteLine Now & " - Successfuly connected printer: " & aPrinters(2,iCounter) & "\" & aPrinters(3,iCounter) & "." If CheckIfMember(aPrinters(4,iCounter),sComputerDN) or _ CheckIfMember(aPrinters(4,iCounter),sUserDN) Then Err.Clear WshNetwork.SetDefaultPrinter "\\" & aPrinters(2,iCounter) & "\" & aPrinters(3,iCounter) If Err then oLogFile.WriteLine Now & " - Error setting default printer to " & aPrinters(2,iCounter) & "\" & aPrinters(3,iCounter) & "(" & err.number & ")." Else oLogFile.WriteLine Now & " - Successfuly set default printer to " & aPrinters(2,iCounter) & "\" & aPrinters(3,iCounter) & "." End If End If Else oLogFile.WriteLine Now & " - Error connecting printer: " & aPrinters(3,iCounter) & ". Error #" & err.number & "." End If End IfNext
January 12th, 2010 10:38pm

Hi, Since it is a script related issue, please discuss in our MSDN forum. Microsoft Development NetworkArthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
January 14th, 2010 12:27pm

Finally tried adding the printers locally and the problem goes away, I don't think it's an issue with the script, but still can't find the cause.
March 1st, 2010 8:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics