Link to home
Start Free TrialLog in
Avatar of kmount
kmount

asked on

Secondary Domain Controller as Print Server

Hello to all Experts!

Have a slight problem.  We have two servers, one primary DC and one secondary DC.  We have installed and shared all of the printers in our organization, on the secondary DC.  Now, the issue is when any user logs in, and they receive their credentials from the primary DC they do not receive the printers.  However, if by chance they authenticate against the secondary DC they do receive the printers.  How can we make it so that if they authenticate against the primary, they receive the printers?  Any help will be greatly appreciated.  The printers are all shared from the secondary DC, and are published in Active Directory.  

Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of Sinder255248
Sinder255248
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kmount
kmount

ASKER

Hi Sinder255248,

Thanks for the help, and sorry for my delay in responding.  

Now, I have used a differnt script (from the one you provided).  It works well when it runs.  However, I have this script applied to a certain group of computers.  The sript has been added to the logon script of the computer configured for our "QuietRoom" OU.  At first it seemed to work just fine.  However, later on it just stopped working.  
I have ran gpresult /v and saw that the policy is being applied, and is NOT being filtered out.  Since it's applying the policy, it should connect the desktops to their respective printers.... However, it does not.  Any insight on this?  This is more of a AD question..

Thanks!
How are you running the script in your GPO?  Is it being called from a batch file using the cscript command or are you running it specifying the vbs file?  Can you paste the script on here?
Avatar of kmount

ASKER

Hi Sinder,

The script is in a vbs file, which is being called by a gpo.  I figured out the issue with the policy not being applied to specific computers.  It was the whole "loopback" problem, and I didn't have that set to "Merge" mode.

Anyway, if you would like here is the script that I'm running.  
Option Explicit
Dim objNetwork, strLocal, strUNCPrinter1, strUNCPrinter2, strUNCPrinter3
strUNCPrinter1 = "\\server\server-share1"
strUNCPrinter2 = "\\server\server-share2"
strUNCPrinter3 = "\\server\server-share3"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection strUNCPrinter1
objNetwork.AddWindowsPrinterConnection strUNCPrinter2
objNetwork.AddWindowsPrinterConnection strUNCPrinter3
objNetwork.SetDefaultPrinter strUNCPrinter1
WScript.Quit

Thanks!