Solved

SBS2003 - Deploying Printer Via GPO

Posted on 2010-08-26
30
1,783 Views
Last Modified: 2012-05-10
I am trying to learn how to deploy a printer via a GP. I am stuck at the first hurdle as I do not have a Ptinter Management as listed below from tech article

http://technet.microsoft.com/en-us/library/cc722179(WS.10).aspx

First thing it says on the list is not an option for me (Printer Management), is this because I am running SBS2003 on this server?

To install printers to groups of users or computers by using Group Policy
1.Open the Administrative Tools folder, and then double-click Print Management.

2.In the Print Management tree, under the appropriate print server, click Printers.

3.In the results pane, right-click the printer you want to deploy, and then click Deploy with Group Policy..................................

Does anyone know of a good article that could teach me how to do this as it is a very useful thing to know obviously when dealing with new printer installs

Thanks in Advance
0
Comment
Question by:NorthstarIT
  • 16
  • 14
30 Comments
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33530487
Unfortunately SBS 2003 doesn't come with Print Management tools as does 2003 R2.
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/SBS_Small_Business_Server/Q_23187084.html

Would you consider doing this via logon script?
Have a look at this example .vsb script. It will map a printer based on the user's AD group and also set the default based on AD group.
logon.txt
0
 

Author Comment

by:NorthstarIT
ID: 33530658
Yeah I would consider doing it anyway so long as it works. Having a look at your script now. I am not really up on login scripts, can you give me a pointer of how to apply it. I guess through AD but would appreciate any guidance you may have

Thanks
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33530733
Certainly, on line 24 the script checks if you are part of a security group "Printer A" if you are it goes the the next line which will add the printer "\\ServerName\Printer A"  simply change that to the actual share name of your printer.
Follow that line of reasoning to modify the rest, if you want more detail on modifying the script let me know.

To apply the script, rename it to logon.vbs and copy it to \\yourserver\netlogon
Once it's in that folder (which your server will have already) open Active Directory Users and computers, find the user account you want to apply the script to, go to the 'profile' tab, and in the space labelled 'logon script' just enter: logon.vbs
It looks in the netlogon folder for the logon.vbs script when the user logs on--and applies it.
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33530746
I forgot to mention, if the user's computer doesn't have the printer driver install, the script will try to install the drivers, however, if the user doesn't have local admin rights on their computer it won't be able to--just something to keep in mind.
0
 

Author Comment

by:NorthstarIT
ID: 33530866
Thank you Joshua, I am going to do this now and will report back and close the question etc.

Won't be long ( I hope)
0
 

Author Comment

by:NorthstarIT
ID: 33531132
Fine so far, just hit one snag though, I already have an entry under Logon Script which is a bat files that maps a bunch of drives at logon. I take it I can't use two logon scripts so how would I modify yours to incorporate the map drives, or can I call the bat file from within your script?#

Thanks
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33531189
Just add either of these to the end of the script:

To map the drive for anyone:
'
Set objNetwork = CreateObject("WScript.Network")
objNetwork.RemoveNetworkDrive "S:", true, true
objNetwork.MapNetworkDrive "S:", "\\yourserver\Something"
set objNetwork = nothing
'
to map the drive based on group membership:

'
Set objNetwork = CreateObject("WScript.Network")
objNetwork.RemoveNetworkDrive "S:", true, true
if IsMember("Something Drive") then
    objNetwork.MapNetworkDrive "S:", "\\yourserver\Something"
end if
set objNetwork = nothing
'
0
 

Author Comment

by:NorthstarIT
ID: 33531212
And in using the first part of the script can I do multiple drives with one bit of code for each?

Set objNetwork = CreateObject("WScript.Network")
objNetwork.RemoveNetworkDrive "S:", true, true
objNetwork.MapNetworkDrive "S:", "\\yourserver\Something"
set objNetwork = nothing

Set objNetwork = CreateObject("WScript.Network")
objNetwork.RemoveNetworkDrive "T:", true, true
objNetwork.MapNetworkDrive "T:", "\\yourserver\Something"
set objNetwork = nothing

etc etc?
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33531247
Yeah just copy that section as many times as you want. I know that was an example but just in case--your S and T drives both can't point to the same location "\\yourserver\Something" Windows doesn't let you have multiple mappings to the same location I believe.
0
 

Author Comment

by:NorthstarIT
ID: 33531309
It was just a letter change example. Thanks
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33531321
I thought so, but just in case!   :)
0
 

Author Comment

by:NorthstarIT
ID: 33531470
It is throwing an error on logon regarding line 52 of the my attached version of your script. It says expected statement. have I missed an END off or something??

Thanks
logon.txt
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33531524
you have an extra: set objNetwork = nothing
delete line 53
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33531571
Acutally there's a couple things, see attached for updated copy
logon-1-.txt
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33531633
Also it's worth considering changing your groups from "Printer A" to something more meaningful like "MC4695MF Printer" or something. That way in AD when you want to give someone a printer you don't have to remember what printer the group "Printer A" will give them.
Up to you though--just a thought.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 6

Expert Comment

by:Joshua1909
ID: 33531688
I wish it were possible to edit these posts then to create a new one each time--but I just noticed a missing line in the original script I sent, I have updated again--sorry.

logon-1-.txt
0
 

Author Comment

by:NorthstarIT
ID: 33531721
No apology required. I too wish you could edit posts. EVen if it was you can only edit them for 5 minutes after posting

I missed those Printer A and B lines. DId not think of them as names, will rename them now

Looking at the revised script now
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33531783
Those lines reflect Active Directory groups, so for examle create a Security Group called: MC4695MF Printer add your users to that group, and change the script where it checks if they're a member of that group

from

--------
 (if IsMember("Printer A") then
--------

to

--------
 (if IsMember("MC4695MF Printer") then
--------
0
 

Author Comment

by:NorthstarIT
ID: 33531852
With the revised script, as attached, can you confirm that neither of these printers will be set as default. The one that is already installed on the machines is the default

Thanks
0
 

Author Comment

by:NorthstarIT
ID: 33531907
Forgot to attach script
logon.txt
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33531909
No script attached?
However, if you don't want to use the script to set default printers, just comment out this section:

'#Set default printer####
'#################################
if IsMember("Printer A Default") then
    WshNetwork.SetDefaultPrinter "\\SATURN\KM-MC4695MF"
    strDefaultPrinter = "Printer A"
elseif IsMember("Printer B Default") then
    WshNetwork.SetDefaultPrinter "\\SATURN\KM-5550PCL6"
    strDefaultPrinter = "Printer B"
end if
'wscript.echo strDefaultPrinter

It's only purpose is to set default printers--not add them.
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33531955
ok, so in that script any users that are a part of the Security Group called KM-MC4695MF will get the \\SATURN\KM-MC4695MF printer mapped, any users part of the KM-5550PCL6 group will get \\SATURN\KM-5550PCL6 mapped.

Any users part of the Security group Printer A Default will get \\SATURN\KM-MC4695MF set as default
any users part of the Security group Printer B Default will get \\SATURN\KM-5550PCL6 set as default
0
 

Author Comment

by:NorthstarIT
ID: 33532024
and what if they are to have both with the KM5550PCL6 being the default? The 4695 is only a backup printer

You sick of questions yet? Want me to close the thread and award?
0
 
LVL 6

Accepted Solution

by:
Joshua1909 earned 500 total points
ID: 33532113
Hahah, happy to help--although I do have to head off to sleep shorty as it's 12:30AM here.

Mapping is not a problem, add the users to both Security Groups  KM-MC4695MF and KM-5550PCL6. That only adds the printers, doesn't set the default.

If you want to set the default to one of those create two new security groups in AD, called:
"KM-5550PCL6 Default" and  "KM-MC4695MF Default" (or something like that)
Then modify this section to the following:

'#Set default printer####
'#################################
if IsMember("KM-MC4695MF Default") then
    WshNetwork.SetDefaultPrinter "\\SATURN\KM-MC4695MF"
    strDefaultPrinter = "KM-MC4695MF"
elseif IsMember("KM-5550PCL6 Default") then
    WshNetwork.SetDefaultPrinter "\\SATURN\KM-5550PCL6"
    strDefaultPrinter = "KM-5550PCL6"
end if
'wscript.echo strDefaultPrinter


You can then add the user to: KM-MC4695MF Default if you want them to have that printer set to default
0
 

Author Closing Comment

by:NorthstarIT
ID: 33532152
Well go to sleep and if I can't fathom it here from now I will re post

Thanks for your detailed help on this. I hope I can work it out from here on in
0
 

Author Comment

by:NorthstarIT
ID: 33532181
Could you just add one more script for me with the 5550 as the default and all the mapped drives etc. Getting confused here
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33532299
The script would be the same. You would just add the user to the Security Group called: KM-5550PCL6 Default in Active Directory instead of KM-MC4695MF Default.

All that the script is doing is looking in Active Directory to see if the user is a memeber of those groups, if it sees the user is a part of group KM-5550PCL6 Default it will set that printer to default.

Essentially once you set this script up you don't need to modify it to change default (or added) printers for users, you just change what groups they're part of in Active Directory.

I'll do up some more detailed description tomorrow.
0
 

Author Comment

by:NorthstarIT
ID: 33532349
Thanks Joshua, apprecaite it
0
 
LVL 6

Expert Comment

by:Joshua1909
ID: 33538110
Ok, I've attached a doco that should help break it down.
Hope it helps.
logon-breakdown.pdf
0
 

Author Comment

by:NorthstarIT
ID: 33540112
Thank you
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Written by Glen Knight (demazter) as part of a series of how-to articles. Introduction One of the biggest consumers of disk space with Small Business Server 2008(SBS) is Windows Server Update Services, more affectionately known as WSUS. For t…
This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Small Business Server 2011. NOTE: This guide has been written using the preview version of SBS2011 therefore some of the screens may …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now