+ Post New Thread
Results 1 to 14 of 14
Windows Server 2008 R2 Thread, Help! Need to solve a big problem with printer allocation. in Technical; We have a Windows 2008 Domain with a mix of XP Pro and Windows 7 Professional Clients. Been having a ...
  1. #1
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    2,497
    Thank Post
    3,372
    Thanked 256 Times in 209 Posts
    Blog Entries
    3
    Rep Power
    109

    Help! Need to solve a big problem with printer allocation.

    We have a Windows 2008 Domain with a mix of XP Pro and Windows 7 Professional Clients. Been having a bit of an issue with printer deployment that’s just getting worse with every tactic I try – grr! I think it’s something to do with my vbs file??

    We have been using a printer.vbs – which appears to run but recently after log on the only print options left for students and staff are Onenote, Fax and PDF. Network printers can then be found and added but at the next logon of that user they have gone again.

    Our domain has a DC1 running Windows Server 2008 Standard 32 Bit OS and a DC2 running Windows Server 2008 R2 64 bit OS. Print manager is enabled on DC1 and also 2 rooms that have exclusive Windows 7 deployed computers are allocated their printers via group policy – these machines do not appear in the vbs file.

    We have 3 user OUs Admin, Staff and Student. Staff and student pick up the vbs at log on but Admin don’t and again Admin keep their deployed printers. So yet again this suggests to me that something in the vbs is screwed.

    Any advice on how to sort this mess out would be very welcome.

    I'm not sure this is the correct thread to post this in so if not mods my apologies and please move as you wish.
    Last edited by speckytecky; 23rd February 2012 at 08:17 PM.

  2. #2

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,778
    Thank Post
    351
    Thanked 1,274 Times in 870 Posts
    Blog Entries
    4
    Rep Power
    1126
    Is there a reason that you should stay with your current script based solution?

    When we moved to Windows 7 we found that the scripts that we had been using for XP clients would not work at all. We changed the printer allocation method to GPP and happy days!

    GPP is my suggestion to you [I understand that you have some remaining XP clients]

  3. Thanks to DaveP from:

    speckytecky (24th February 2012)

  4. #3
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    2,497
    Thank Post
    3,372
    Thanked 256 Times in 209 Posts
    Blog Entries
    3
    Rep Power
    109
    Thanks for the reply Dave,

    We are still about 80% XP and it's the XP clients that we are having the issues with so what would you suggest for that please?


    Quote Originally Posted by DaveP View Post
    Is there a reason that you should stay with your current script based solution?

    When we moved to Windows 7 we found that the scripts that we had been using for XP clients would not work at all. We changed the printer allocation method to GPP and happy days!

    GPP is my suggestion to you [I understand that you have some remaining XP clients]

  5. #4

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,778
    Thank Post
    351
    Thanked 1,274 Times in 870 Posts
    Blog Entries
    4
    Rep Power
    1126
    Your script used to work for your XP clients and now it doesn't. What has changed? [Apart from the fact that it no longer works]

    Have you made a change to the script?
    Have you made a change to the domain that might affect this? [We had a problem a while back that we traced to us having to use FQDN] Once we started using the FQDNs the problem was solved [not a printer allocation issue]
    Could you post your printer.vbs file here? Perhaps someone here could spot a problem with the syntax?

    Other suggestions....Thinking...

    HTH.

  6. Thanks to DaveP from:

    speckytecky (24th February 2012)

  7. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,705
    Thank Post
    3,239
    Thanked 1,045 Times in 967 Posts
    Rep Power
    363
    yes post the script so we can look at that, how are you applying the script ie

    1. logon or startup script
    2. Is it applied to a computer OU ?
    3. Is it set to process as asynchronous or just synchronous ( think those are the 2 settings )
    4. Do you have it set in GPO to wait for the network
    5. Is there a sleep command using wscript to wait for at least 5 or 10 seconds before running the rest of the script ?

    Only other thing I have experienced but this was in relation to the driver getting mucked up by wsus, was we setup the print server with all the relevant printers and latest drivers and had wsus configured to update everything which in turn updated the drivers ( but only to an older version of the driver which never worked ). Had to add an exception on wsus not to upgrade any drivers ( at least not on the print server ) but there were errors on the clients in event viewer in relation to the dll files etc

  8. Thanks to mac_shinobi from:

    speckytecky (24th February 2012)

  9. #6

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,799
    Thank Post
    272
    Thanked 1,134 Times in 1,030 Posts
    Rep Power
    349
    You can still use good to deploy printers to xp clients from 2k8 server. You just need to in your login script run pushprinterconnections.exe this then maps the printers.

    You need to have installed the GP preferences update for XP.

    This was 3 yrs ago I did that but should still work

  10. Thanks to glennda from:

    speckytecky (24th February 2012)

  11. #7
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    2,497
    Thank Post
    3,372
    Thanked 256 Times in 209 Posts
    Blog Entries
    3
    Rep Power
    109
    Thanks for those very useful replies folks - thanks willingly allocated as I'm going nuts with this one!!! Will be back with some answers to your Q's and post up the vbs on Monday.

  12. #8
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    2,497
    Thank Post
    3,372
    Thanked 256 Times in 209 Posts
    Blog Entries
    3
    Rep Power
    109
    Thanks DaveP,

    I'm hopeful that this will be the situation with us as well. Mindful that this issue started after a 2nd DC was added to the domain it seems pretty logical thinking about it that the vbs will need a tweak or 30 to specify more exactly where the printer allocated lives. Being a fairly newbie to this I'm not sure how I would specify the location of a printer that's USBd on a workstation. I have one that gets listed as TD7\JBN for example - and coincidentally that's a PC that errors on boot up complaining about that printer path. Am I right in thinking that I'd need to amend it to domainname\td7\jbn now?

    Quote Originally Posted by DaveP View Post
    Your script used to work for your XP clients and now it doesn't. What has changed? [Apart from the fact that it no longer works]

    Have you made a change to the script?
    Have you made a change to the domain that might affect this? [We had a problem a while back that we traced to us having to use FQDN] Once we started using the FQDNs the problem was solved [not a printer allocation issue]
    Could you post your printer.vbs file here? Perhaps someone here could spot a problem with the syntax?

    Other suggestions....Thinking...

    HTH.

  13. #9
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    2,497
    Thank Post
    3,372
    Thanked 256 Times in 209 Posts
    Blog Entries
    3
    Rep Power
    109
    What would you guys suggest I need to make anonymous before posting the vbs up?

  14. #10

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Quote Originally Posted by speckytecky View Post
    What would you guys suggest I need to make anonymous before posting the vbs up?
    Unless you've got anything special for access rights (passwords, real IPs etc) I wouldn't worry too much. As it'd all be internal computer names, generally I'd suggest renaming client/server names to something simple like Server1, Client2 etc just in case anyone is reading who has local access, but normal adding of printers etc shouldn't matter much.

    Steve

  15. Thanks to Steve21 from:

    speckytecky (26th February 2012)

  16. #11
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    2,497
    Thank Post
    3,372
    Thanked 256 Times in 209 Posts
    Blog Entries
    3
    Rep Power
    109
    Here is the content of the vbs file:

    Set WshNetwork = CreateObject("WScript.Network")


    Dim CN


    CN = wshNetwork.ComputerName


    if CN = "HIPHOP3" or _
    CN = "HIPHOP4" or _
    CN = "HIPHOP6" or _
    CN = "STAFFROOM2" or _
    CN = "STAFFROOM3" or _
    CN = "STAFFROOM5" or _
    CN = "YOUR-E641889C92" or _
    CN = "MSILAPTOP-KP" then
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    WshNetwork.SetDefaultPrinter "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"


    end if


    if CN = "LSAPS" or _
    CN = "" or _
    CN = "" or _
    CN = "" or _
    CN = "" or _
    CN = "" or _
    CN = "" or _
    CN = "" or _
    CN = "" then


    WshNetwork.AddwindowsPrinterConnection "\\LSAPS\HP Officejet Pro 8000 A809 Series"
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    WshNetwork.SetDefaultPrinter "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"


    end if


    if CN = "MM" or _
    CN = "CARE" or _
    CN = "DL-15-SatPrp" or _
    CN = "SAVUNIT" or _
    CN = "" or _
    CN = "" or _
    CN = "" or _
    CN = "" or _
    CN = "" then
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    WshNetwork.SetDefaultPrinter "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"


    end if




    if CN = "PE2" or _
    CN = "HP41991955921" or _
    CN = "PE1" or _
    CN = "OX6" or _
    CN = "OXENWOOD4" or _
    CN = "PE21jan10" then
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    WshNetwork.SetDefaultPrinter "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"


    end if


    if CN = "KP36" or _
    CN = "KP16" or _
    CN = "KP18" or _
    CN = "KP123" or _
    CN = "KP12" or _
    CN = "KPCR5" or _
    CN = "ENGLISH04" or _
    CN = "DEPUTYCARE" or _
    CN = "TEACHR8-HP" then
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    WshNetwork.SetDefaultPrinter "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    end if





    if CN = "DL16-Zoo187243" or _
    CN = "foodtech1" or _
    CN = "foodtech5" or _
    CN = "foodtech10" or _
    CN = "foodtech7" or _
    CN = "foodtech3" or _
    CN = "foodtech8" or _
    CN = "foodtech9" or _
    CN = "foodtech4" or _
    CN = "foodtech6" then
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"
    WshNetwork.AddwindowsPrinterConnection "\\SEC0015997821C1"
    WshNetwork.SetDefaultPrinter "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"




    end if


    if CN = "FJSULNO1" or _
    CN = "M2No4" or _
    CN = "New55" or _
    CN = "MATHS72" or _
    CN = "M2No2" or _
    CN = "english10" or _
    CN = "New61" or _
    CN = "DUPLONE" then
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    WshNetwork.AddwindowsPrinterConnection "\\SEC0015998F4C52"
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"
    WshNetwork.SetDefaultPrinter "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"


    end if


    if CN = "TD7" or _
    CN = "TD1" or _
    CN = "TD2" or _
    CN = "KH12" or _
    CN = "TD4" or _
    CN = "TD8" or _
    CN = "TD10" or _
    CN = "technology1" or _
    CN = "ICT-ROOM" then
    wshNetwork.AddWindowsPrinterConnection "\\MySchool\TD7\JBN"
    wshNetwork.AddWindowsPrinterConnection "\\ICT-ROOM\RolandMO"
    wshNetwork.AddWindowsPrinterConnection "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"
    wshNetwork.AddWindowsPrinterConnection "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    wshNetwork.SetDefaultPrinter "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    end if




    if CN = "SD434" or _
    CN = "wasmaths022008" or _
    CN = "M4" or _
    CN = "M3" or _
    CN = "M1" or _
    CN = "maths052008" or _
    CN = "7658Photo" or _
    CN = "maths062008" or _
    CN = "MATHS7" or _
    CN = "MATHS8" then
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    WshNetwork.SetDefaultPrinter "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    end if


    if CN = "scilabteach" or _
    CN = "sc31" or _
    CN = "sci32" or _
    CN = "sci33" or _
    CN = "scnb1a" or _
    CN = "scnb2" or _
    CN = "scnb3" or _
    CN = "scnb5" or _
    CN = "sci45" then
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\Ricoh Aficio 2060 PCL6"
    WshNetwork.AddwindowsPrinterConnection "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"
    WshNetwork.SetDefaultPrinter "\\MySchool-DC1\RICOH Aficio 3245C PCL 6"


    end if

  17. #12

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Two things I'd say straight away:

    Set WshNetwork = CreateObject("WScript.Network")
    Shouldn't it be:
    Set WshNetwork = WScript.CreateObject("WScript.Network")
    Not sure if it's just best practice, or needed but either way.

    Secondly, Do all your computer names have uppercase? As sometimes it can be case sensitive, so best to do something like:

    CN= UCase(WshNetwork.Computername)
    Will take a look through rest, but wondering if it's that WSCript that it's not happy with, but not sure off hand.

    Steve

  18. Thanks to Steve21 from:

    speckytecky (26th February 2012)

  19. #13
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    2,497
    Thank Post
    3,372
    Thanked 256 Times in 209 Posts
    Blog Entries
    3
    Rep Power
    109
    Thanks Steve,

    That makes sense. My thinking from the help that's been coming in on this thread is that the vbs was never a happy vbs and the added dc2 running Server 2008 R2 has somehow tightened things up so it's even more of a failure. trouble is my vbs knowledge is minimal!! So, I have been a bit all at sea with trying to sort it out.

    Quote Originally Posted by Steve21 View Post
    Two things I'd say straight away:



    Shouldn't it be:

    Not sure if it's just best practice, or needed but either way.

    Secondly, Do all your computer names have uppercase? As sometimes it can be case sensitive, so best to do something like:



    Will take a look through rest, but wondering if it's that WSCript that it's not happy with, but not sure off hand.

    Steve

  20. #14

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Quote Originally Posted by speckytecky View Post
    Thanks Steve,

    That makes sense. My thinking from the help that's been coming in on this thread is that the vbs was never a happy vbs and the added dc2 running Server 2008 R2 has somehow tightened things up so it's even more of a failure. trouble is my vbs knowledge is minimal!! So, I have been a bit all at sea with trying to sort it out.
    Offhand those are the only two items I can see that looks "wrong" (Not wrong wrong, but potential if that makes sense), Unless i'm being blind that is

    Other than that, it might be silly things like do the users have access to the printers in the first place? Remember that wherever the printers are coming from they need access to, so might be worth trying to add them as a student (Know you said local ones can be found, but wasn't sure if that's admin or not).

    Try changing that WScript tomorrow, and see how it goes I guess (unless you have remote access and fancy working now! )

    Steve

  21. Thanks to Steve21 from:

    speckytecky (26th February 2012)

SHARE:
+ Post New Thread

Similar Threads

  1. Alittle help to solve a "BIG" Problem!
    By jonpenn101 in forum Windows
    Replies: 18
    Last Post: 8th February 2011, 08:49 AM
  2. Replies: 4
    Last Post: 25th February 2009, 06:26 PM
  3. Help needed to explain BSF
    By witch in forum BSF
    Replies: 6
    Last Post: 17th March 2008, 12:22 PM
  4. Replies: 11
    Last Post: 6th September 2007, 07:10 PM
  5. Help needed to reconfig my DC's
    By tosca925 in forum Windows
    Replies: 16
    Last Post: 20th November 2006, 10:45 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
  •