Ghost Solution Suite

 View Only
  • 1.  Changing default printer for default user with Ghost

    Posted Mar 13, 2009 12:17 PM

    Is it possible to send an image to 40 PC's with a set of printers and then change the default and second printer using Ghost 2.0 or 2.5?

     

    Thanks

     

    Topper



  • 2.  RE: Changing default printer for default user with Ghost

    Posted Mar 13, 2009 03:17 PM

    Topper,

    This is possible if you use an Execute Command Task (GSS 2.0) or Softwrae and File Actions Task with a Target OS action (GSS 2.5). This can be done via command line options found in this Microsoft tech article:

    How to add printers with no user interaction in Windows

    http://support.microsoft.com/kb/q189105/ 



  • 3.  RE: Changing default printer for default user with Ghost

    Posted Mar 15, 2009 05:20 PM

    There is a gotcha if you try to use rundll to set the default printer (I would not expect any problems with the 'install' method though). Explanation and alternative method over here. Note that some time ago a user mentioned the script in that link needed a mod to work with usernames containing spaces.

    There are also some additional alternative methods identified over here which I have not looked into.

    It would be interesting to know which method you choose to implement.

    Thanks,

    Xan

     

     



  • 4.  RE: Changing default printer for default user with Ghost

    Posted Mar 16, 2009 07:49 PM

    I have tried the microsoft kb way and got errors and the hkcu settings do it for

    (go figure) the curent user, but nothing seems to set it up for default. At the college, we create an image that might be okay for several labs, but because each lab has a different 2 printers and one of the two is the default, we end up with one image per lab. In my location , that is 9 labs of 40 pc's each.

     

    My printers are like \\wopq1\wp-b351-1 and \\wopq1\wp-b351-2 . This would designate lab 351 printer one and wb351 printer two. Both of these printer are served by the server wopq1. The next lab beside it would be \\wopq1\wp-b353-1 and \\wopq1\wpb353-2 etc. My labs are wb 351,353,355,357,365.366,383,b373 and b373a as well as wb451 and wb453. Each one has approx 40 PC's.

    We set up and image that might fit all these labs, copy the tech profile to administrator and then administrator to default. All these labs use Deep Freeze , so I don't care that all user are full admins. After a restart, all settings are reverted to the image that was put down. Thats what is nice about Deep Freeze. Yopu can delete anything and move anything you want or place a virus. If I restart, it's all okay. So now you have my set up. I use GSS2.0 and am currently waiting for 2.5. Can we fix this???

     

    Thanks

     

    Wayne Turcotte (Topper)



  • 5.  RE: Changing default printer for default user with Ghost

    Posted Mar 19, 2009 11:28 AM

    Wish i could take credit for this but I can't. Found this on a website in England and modified it for my purposes. This is a vbc script that I place on the root of C:\ after imaging the room. In HCLM, in run, I ask that it run this script. Works everytime and is independent of user. Here is the script.

    ' PrinterSetDefault.vbs - Windows Logon Script.
    ' VBScript - Set Default Printer
    ' Author Guy Thomas http://computerperformance.co.uk/
    ' Version 3.2 - June 2006
    ' -----------------------------------------------------------'
    Option Explicit
    Dim objNetwork, strUNCPrinter1, strUNCPrinter2
    strUNCPrinter1 = "\\wopq1\wp-b351-1"
    strUNCPrinter2 = "\\wopq1\wp-b351-2"
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.AddWindowsPrinterConnection strUNCPrinter1
    objNetwork.AddWindowsPrinterConnection strUNCPrinter2
    objNetwork.SetDefaultPrinter strUNCPrinter1

    WScript.Quit

    ' End of Guy's set printer script.

     

    Hope this helps and the credit goes to

    http://computerperformance.co.uk/. Many useful scripts here.