+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 25
Windows Server 2008 R2 Thread, Printer allocation issue in Technical; Hi there, just setup a new domain and most things appear to be ironed out on the test machines apart ...
  1. #1
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    85

    Printer allocation issue

    Hi there,

    just setup a new domain and most things appear to be ironed out on the test machines apart from printers.

    I have tried allocatiing printers to an OU containing XP machines via startup and login vbs script but the printer just will now appear! I created a separate GPO and linked it to the OU specifically for this purpose.

    Any ideas/pointers will be greatly appreciated.

  2. #2
    Mcshammer_dj's Avatar
    Join Date
    Feb 2007
    Location
    Portsmouth
    Posts
    951
    Thank Post
    37
    Thanked 167 Times in 134 Posts
    Rep Power
    95
    can you connect to the share manually?

    check that the name of the share is the same in the vbs.

    Maybe post the vbs here and see if anyone can see a problem.

    what server os and what XP bit level

  3. #3
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    85
    Can connect to the printer manually.

    Here is the vbs:

    Set WshNetwork = CreateObject("WScript.Network")
    PrinterPath = "\\StMarys-01\ICT - Ricoh"
    PrinterDriver = "GelSprinter GX e3350N PCL 6"
    WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
    WshNetwork.SetDefaultPrinter "\\StMarys-01\ICT - Ricoh"

  4. #4
    Mcshammer_dj's Avatar
    Join Date
    Feb 2007
    Location
    Portsmouth
    Posts
    951
    Thank Post
    37
    Thanked 167 Times in 134 Posts
    Rep Power
    95
    Option Explicit
    Dim objNetwork, strUNCPrinter
    strUNCPrinter = "\\server_name\printer_share"

    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.AddWindowsPrinterConnection strUNCPrinter

    strComputer = "."

    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

    Set colInstalledPrinters = objWMIService.ExecQuery ("Select * from Win32_Printer where DeviceID = 'Microsoft Office Document Image Writer'")
    For Each objPrinter in colInstalledPrinters
    objPrinter.Delete_
    Next

    Set colInstalledPrinters = objWMIService.ExecQuery ("Select * from Win32_Printer where DeviceID = 'Microsoft XPS Document Writer'")
    For Each objPrinter in colInstalledPrinters
    objPrinter.Delete_
    next

    WScript.Quit

    ' End of Windows printer script.


    This works for me and it removes the MS Office and XPS image printers

  5. Thanks to Mcshammer_dj from:

    bodminman (31st October 2011)

  6. #5
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    85
    Just trying your script now so will update you in 5 minutes or so.

    Thanks

  7. #6
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    85
    Just got an error saying that the script failed on line 8 charactor 1. I take it that's the StrComputer line or don't line spaces count?

  8. #7
    Mcshammer_dj's Avatar
    Join Date
    Feb 2007
    Location
    Portsmouth
    Posts
    951
    Thank Post
    37
    Thanked 167 Times in 134 Posts
    Rep Power
    95
    take the strcomputer line and all below out. and then run to check that it creates and maps the printer

  9. #8
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    85
    No error and no printer.

  10. #9
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    85
    Tried this script running from both Computer/Startup and User/Login but the printer fails to appear.

    However when I copy the same script locally to the workstation and run it, the printer installs fine!

    Any ideas anyone?

  11. #10

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,572 Times in 1,252 Posts
    Rep Power
    340
    Is there any reason you're not deploying printers with GPOs? You can do computer, user or a combination of both.

  12. #11
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    85
    Tried doing via GPO deployment but that didn't work either.

  13. #12

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,572 Times in 1,252 Posts
    Rep Power
    340
    With Windows Server 2008 R2 deploying to Windows 7 it literally is a case of installing the printer, sharing it and then deploying it using Print Management. Providing the drivers are actually any good, but that's another story...

    With Windows Server 2003 R2 or 2008 R2 deploying to Windows XP, again as above you share and deploy using Print Management, but you also need to deploy a file 'pushprinterconnections.exe' as a Startup file.

  14. #13
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    85
    I found the info re pushprinterconnections and downloaded the 32bit version to run on the XP machines. Other than that I done what you described but no printer appeared.

    It really is a weird one especially as I can install the printer manually via vbs or Add Printer wizard.

    I'll give the GPO route another go and update here in about 10 minutes.

  15. #14

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,572 Times in 1,252 Posts
    Rep Power
    340
    If you're deploying using 2008 R2, you need to install the 64Bit drivers first, then 32Bit (same type of driver and version). Windows will then intelligently pick the right printer driver for 32Bit or 64Bit workstations.

    Adding the 64Bit can be done manually or running a setup file (it depends really). Adding the 32Bit driver in Print Management is something you do manually.

  16. #15
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    85
    Hi there, I originally added the printer to the server using the 64bit driver and then later added the 32bit version. Just retried via the GPO and still no joy. This is really starting to pee me off TBH!

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Weird: printer mapping issue
    By Andie in forum Windows
    Replies: 5
    Last Post: 23rd May 2011, 02:04 PM
  2. Weird Printer Deployment Issue
    By Sunderwood in forum Windows Server 2008
    Replies: 6
    Last Post: 8th March 2011, 09:50 AM
  3. Server 2008 R2 Ricoh printer margin issue URGENT!
    By rocknrollstar in forum Windows Server 2008 R2
    Replies: 1
    Last Post: 6th September 2010, 09:57 PM
  4. Please help X32 X64 Printer server issues
    By lsheldon in forum Windows Server 2000/2003
    Replies: 0
    Last Post: 3rd March 2009, 10:57 AM
  5. Viglen Network and remote printer interfaces issue
    By PrimaryTech in forum Wireless Networks
    Replies: 3
    Last Post: 17th October 2006, 12:14 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •