+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
Windows Thread, Pushing printer installs from Windows 2003 R2 in Technical; I just received this months 'Software Shelf Enterprise Online Newsletter' and it included this very useful set of instructions for ...
  1. #1

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,637
    Thank Post
    514
    Thanked 2,443 Times in 1,891 Posts
    Blog Entries
    24
    Rep Power
    831

    Pushing printer installs from Windows 2003 R2

    I just received this months 'Software Shelf Enterprise Online Newsletter' and it included this very useful set of instructions for printer management via GPO on 2003 R2 and XP:

    ---- How can I deploy a printer to clients by using Windows Server 2003 R2?

    Windows Vista and Longhorn Server will provide printer publishing using native Group Policy. In the interim, Windows 2003 R2 allows printers to be pushed out via Group Policy and a small piece of client-side code that runs as part of the logon process. It looks at Group Policy and checks which printers it should add, then adds them. Your Active Directory (AD) needs to be running the Windows 2003 R2 schema changes that support printer deployment. To deploy printers, follow this process:

    First, on the Windows 2003 R2 server, you need to add the Print Management Component:

    Start the "Add or Remove Programs" Control Panel applet (Start, Settings, Control Panel, Add or Remove Programs, "Add or Remove Windows Components," "Management and Monitoring Tools," then check the Print Management Component.
    Click Next and when prompted, point to the Windows 2003 R2 disk 2 location.
    Click Finish.
    A new Print Management snap-in is now available in the Administrative Tools folder. To deploy a printer, perform these steps:

    1. Start the Microsoft Management Console (MMC) Print Management snap-in (Start, Programs, Administrative Tools, Print Management).
    2. Expand the Print Servers branch, then expand the print server hosting the printer and select Printers.
    3. Right-click the printer you want to deploy with Group Policy and select "Deploy with Group Policy."
    4. Click Browse to select the Group Policy Object (GPO) name to use.
    5. Click the "new" GPO icon (or select an existing GPO) and name it Deploy Printers. Click OK.
    6. Check either or both "The users that this GPO applies to (per user)" or "The computers that this GPO applies to (per machine)" and click Add.
    7. Click OK to the deploy dialog box.
    8. Make sure the GPO you created (if you created one) is linked to a domain or OU to ensure that users and computers receive the pushed printer. When you open the GPO you'll notice a new Deployed Printers branch, which lists deployed printers in the GPO.

    Currently the selected printer won't deploy because the client doesn't understand the Group Policy settings since they're new to R2 and not expected by older clients; you need to configure the PushPrinterConnections.exe utility (found in the %systemroot%\PMCSnap folder) to execute. To do so, perform these steps:

    1. Open the Microsoft Management Console (MMC) Group Policy Object Editor and open the GPO you used for the printer deployment.
    2. If the printer is deployed to users, navigate to User Configuration, Windows Settings, Scripts (Logon/Logoff); if it's deployed to computers, navigate to Computer Configuration, Windows Settings, Scripts (Startup/Shutdown).
    3. Right-click Startup or Logon, and click Properties.
    4. In the Logon Properties or Startup Properties dialog box, click Show Files. The location of the folder used at logon is shown in the Address field (e.g., \\savilltech.com\SysVol\savilltech.com\Policies\{E AB0039E-A677-4C89-9CF2-053576CDA1FC}\Machine\Scripts\Startup).
    5. Copy and paste the PushPrinterConnections.exe file from the c:\windows\PMCSnap folder to this location and close the window.
    6. In the Logon Properties or Startup Properties dialog box, click Add.
    7. Enter "PushPrinterConnections.exe" in the Script Name box (to enable logging, enter "–log" in the Script Parameters box). 8. Log files are written to %windir%\Temp\PpcMachine.log (for per-computer connections) and %temp%\PpcUser.log (for per-user connections) on the computer on which the policy is applied).
    Click OK

    For per-user deployed printers, you now need to log off, then log on; for per-machine printers, you need to restart the targeted computer.

  2. #2

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49

    Re: Pushing printer installs from Windows 2003 R2

    Thanks, Ive got this to work on over half term, and you've saved me having to look for the instructions

    I find it amazing though that despite being MS software they cant even provide an MSI!

  3. #3

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,637
    Thank Post
    514
    Thanked 2,443 Times in 1,891 Posts
    Blog Entries
    24
    Rep Power
    831

    Re: Pushing printer installs from Windows 2003 R2

    Quote Originally Posted by sidewinder
    Thanks, Ive got this to work on over half term, and you've saved me having to look for the instructions

    I find it amazing though that despite being MS software they cant even provide an MSI!
    You do have to give them credit for recognising that it is a problem and coming up with a method to solve the problem though.

  4. #4

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49

    Re: Pushing printer installs from Windows 2003 R2

    Oh definately, yes

    If it works as well as its meant to when I set it up then I will be extremely happy with MS

  5. #5
    Heebeejeebee's Avatar
    Join Date
    Nov 2006
    Location
    Intergalactic Cruise
    Posts
    1,050
    Thank Post
    68
    Thanked 75 Times in 59 Posts
    Rep Power
    34

    Re: Pushing printer installs from Windows 2003 R2

    Have I done something wrong?

    I've done everything listed here and it's not deploying anything.

    Cheers

    HBJB

  6. #6

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    144

    Re: Pushing printer installs from Windows 2003 R2

    I've tried to get this working before just after server 2003 R2 was released when we were building our new network over the summer. I couldn't get it to work thou

    Might have another go sometime. At the moment I've got a VBS script that does a simelar thing, mapping printers according to the active directory container the machine account is in.

    Mike.

  7. #7

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,710
    Thank Post
    3,246
    Thanked 1,048 Times in 970 Posts
    Rep Power
    364

    Re: Pushing printer installs from Windows 2003 R2

    @ maniac

    Any chance of getting the vbscript that you have so I can see how you are doing it ?

    Also what issues or problems or error messages ( If any ) do you get or have when you try and do it ?

  8. #8

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    144

    Re: Pushing printer installs from Windows 2003 R2

    Here is the VBscript I use at present.

    I run this as a logon script in active directory, along side another script I have which maps drives according to Group membership.

    I can't remember what happened when we tried deploying printers using Active Directory, all I know is it didn't work! With half term next week, I might have the time to try it again although the VB script is working a treat at the moment. Why fix what isn't broke!

    Mike
    Attached Files Attached Files

  9. #9
    Heebeejeebee's Avatar
    Join Date
    Nov 2006
    Location
    Intergalactic Cruise
    Posts
    1,050
    Thank Post
    68
    Thanked 75 Times in 59 Posts
    Rep Power
    34

    Re: Pushing printer installs from Windows 2003 R2

    OK, it turned out that the test machine we were using does not want to pick up very much from the AD, no software installs or printers but it does apply the user policies (?). We had it in a test OU so we didn't notice the lack of software installation until I added it to an existing OU.

    In desperation we tried a different test machine and it worked a treat.

    Thanks to those that responded though.

    HBJB

  10. #10

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49

    Re: Pushing printer installs from Windows 2003 R2

    Got this working and its great, works every time

    few questions though:

    Although its good for pushing out printers to whole suites (in their own OU) it isnt very useful if for example one of the admin staff ask to print to another printer, as I would need to push it to just one PC in the OU
    Is there any way of doing this in a tidy way, because the only way I can think of is applying the printer to the whole OU but only giving that specific machine access to read the GPO

    Also, is there a script or something by which I can remove printers that have previously been added manually? Because I want to get all our printers deployed using this but at the minute it would just cause duplicates of whats already present on the machines

  11. #11

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    144

    Re: Pushing printer installs from Windows 2003 R2

    You can use my printer VBS script to acheive this, just replace the lines

    objWshNetwork.AddWindowsPrinterConnection "\\server\printer"

    With

    objWshNetwork.RemovePrinterConnection "\\server\printer"

    Because the script is error trapped, if a particular printer doesn't exist on a workstation, it will just skip that line, so you could potentially use one script to remove all your printer connections from all your workstations at logon. Problem is it will also remove the connections added by the script, so you'll probably have to run this on all your workstations first to remove the connections before re-deploying them, and as it only works as a logon script, you'll have to log onto all your workstations one at a time for the connections to be removed.

    Solution might be to rename your printers, add the new names and remove the old names using the script.

    Also this script could be adapted to deploy to an individual workstation name, or possibly an individual username, as VBscript can read the workstation names and usernames from the environment, so you can use a simple if...then statement to achieve this.

    Mike.

  12. #12
    Friez's Avatar
    Join Date
    Dec 2006
    Posts
    839
    Thank Post
    22
    Thanked 22 Times in 21 Posts
    Rep Power
    23

    Re: Pushing printer installs from Windows 2003 R2

    Here's one Heebeejeebee and I discovered that classifies for "WTF", It's a problem we were suffering, that somebody else may encounter which we found a solution for.

    We're documenting it here for any poor bugger who suffers the same fate.

    The problem being is that PushPrinterConnections.exe doesn't always do what it says on the tin.

    Picture this: You have printers set up on a per-machine basis and drag a machine from one OU to another OU in active directory. These OU's have totally different printers assigned to them via two different GPOs.

    THEORETICALLY PPC should drop the old printers and add the new ones.

    What happens in reality is that it DOES add the new printers, but does it remove the old ones? HELL NO.

    So... you move it back to the old OU, but to no avail, now you have both OU's printers assigned to that machine despite being a member of only one exclusive OU. Nice one Microsoft.

    WHAT DO YOU DO?

    Firstly you have to remove the printer from the GPO via the Print Management Console (removing it via AD does sweet f-all). You go to deploy, remove them, and that drops the printers from everything that has that GPO, including the one that is 'no longer assigned but really is'.

    But you're not done yet, if you try re-deploying the printer at this stage to the GPO you will have the printer show up again for not only the printers that are assigned to the OU containing the GPO, but also our fubared machine that isn't.

    So what do you do now? You have to fully remove the GPO. Yes that's right, totally delete it. Unlinking it won't help you.

    You have to totally demolish the GPO, recreate it and then re-deploy the printer again (via PMC).

    What a load of agro.

    Microsoft seem to have overlooked the fact that we might want to remove printers via AD and not PMC so be very careful when dragging machines around in AD or else you'll find there are printers that just don't disappear.

  13. #13

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498

    Re: Pushing printer installs from Windows 2003 R2

    @Friez - this is precisly why I am sticking to the custom VBScript that adds a printer depending on the start of the PC name (aka Room Name)

  14. #14

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49

    Re: Pushing printer installs from Windows 2003 R2

    Thanks for that Friez, thankfully havent moved anything around yet
    Maybe I will just go with VB Scripts if it accomplishes exactly the same thing

    Gatt would you mind sharing that script or is it already posted here somewhere?

  15. #15

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498

    Re: Pushing printer installs from Windows 2003 R2

    The script is available here...

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

Similar Threads

  1. Windows 2003 R2 Printer Management
    By Simcfc73 in forum Windows Server 2000/2003
    Replies: 50
    Last Post: 4th February 2010, 02:44 PM
  2. windows 2003 sever r2 printer manager!
    By krisd32 in forum Windows
    Replies: 5
    Last Post: 18th December 2006, 07:40 PM
  3. Windows 2003 Server R2 - No printer ports !!
    By pmassingham in forum Windows
    Replies: 2
    Last Post: 1st September 2006, 03:16 PM
  4. Print Management & GPO Printer Installs
    By RobC in forum Windows Vista
    Replies: 1
    Last Post: 7th July 2006, 09:42 PM
  5. Cannot set default printer Server 2003
    By tosca925 in forum Windows
    Replies: 2
    Last Post: 26th August 2005, 03:49 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
  •