Discussion:
Access denied adding network printers fronm trusted domain.
(too old to reply)
fedaynjorge
2008-09-30 08:42:01 UTC
Permalink
Hi,

We have two trsuted domain. Domain A and domain B trust fully each other.
We've just installed a server A belonging to domain A. Workstations belong to
domain B and I've created a Computer startup script to add network printers
from server A from the other domain.

When workstation are applying their configuration all of them get an access
denied error 800A0046. The line is in this way:

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\serverA\PrinterQueue"

It's likely there are a permission problem, but it's just some users trying
to install a netowrk printer from a truted domain.

I've already granted rights to Domain Users and Computer Machines from the
other domain, no way.

Thanks in advance.
Marcin
2008-09-30 13:30:16 UTC
Permalink
What is the operating system of your clients and servers? What type of trust
relationship is established between both domains (external or forest)?
In any case, I believe that this approach will, at best, create a printer
mapping in the .Default profile on your client computers (with not much of a
benefit to your users).
You might want to consider alternatives - such as, for example, mapping
printers based on the client computer OU
(http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul07/hey0727.mspx),
its IP address
(http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul06/hey0719.mspx),
taking advantage of Windows Server 2003 R2 printer management features
(assuming you have those available), or similar functionality available via
GP Preferences...

hth
Marcin
Post by fedaynjorge
Hi,
We have two trsuted domain. Domain A and domain B trust fully each other.
We've just installed a server A belonging to domain A. Workstations belong to
domain B and I've created a Computer startup script to add network printers
from server A from the other domain.
When workstation are applying their configuration all of them get an access
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\serverA\PrinterQueue"
It's likely there are a permission problem, but it's just some users trying
to install a netowrk printer from a truted domain.
I've already granted rights to Domain Users and Computer Machines from the
other domain, no way.
Thanks in advance.
Jorge Silva
2008-09-30 17:20:27 UTC
Permalink
Hi
Can you do it manually?
--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MCSE, MVP Directory Services

Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.
fedaynjorge
2008-10-01 10:51:00 UTC
Permalink
Of course,

Once the user has loged to the network there's no problem.

What's more, I tried with user logon scripts and everything goes well.

The problem is that by using computer startup scripts, the script runs with
SYSTEM account credentials and this one netowork doesn't recognize this
account, so it's impossible to do anything.

Thanks to Marcin, I'll try filtering with ip addresses.

Thanks both.
Post by Jorge Silva
Hi
Can you do it manually?
--
I hope that the information above helps you.
Have a Nice day.
Jorge Silva
MCSE, MVP Directory Services
Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.
Jorge Silva
2008-10-01 11:07:00 UTC
Permalink
Great.
--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MCSE, MVP Directory Services

Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.
Kirill Kurchin
2011-08-27 02:35:45 UTC
Permalink
Hi fedaynjorg
Did you solved your problem descripted above?
I have same problem, external trusting domain and SYSTEM account.
Post by fedaynjorge
Hi,
We have two trsuted domain. Domain A and domain B trust fully each other.
We've just installed a server A belonging to domain A. Workstations belong to
domain B and I've created a Computer startup script to add network printers
from server A from the other domain.
When workstation are applying their configuration all of them get an access
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\serverA\PrinterQueue"
It's likely there are a permission problem, but it's just some users trying
to install a netowrk printer from a truted domain.
I've already granted rights to Domain Users and Computer Machines from the
other domain, no way.
Thanks in advance.
Post by Marcin
What is the operating system of your clients and servers? What type of trust
relationship is established between both domains (external or forest)?
In any case, I believe that this approach will, at best, create a printer
mapping in the .Default profile on your client computers (with not much of a
benefit to your users).
You might want to consider alternatives - such as, for example, mapping
printers based on the client computer OU
(http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul07/hey0727.mspx),
its IP address
(http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul06/hey0719.mspx),
taking advantage of Windows Server 2003 R2 printer management features
(assuming you have those available), or similar functionality available via
GP Preferences...
hth
Marcin
Post by Jorge Silva
Hi
Can you do it manually?
--
I hope that the information above helps you.
Have a Nice day.
Jorge Silva
MCSE, MVP Directory Services
Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by fedaynjorge
Of course,
Once the user has loged to the network there's no problem.
What's more, I tried with user logon scripts and everything goes well.
The problem is that by using computer startup scripts, the script runs with
SYSTEM account credentials and this one netowork doesn't recognize this
account, so it's impossible to do anything.
Thanks to Marcin, I'll try filtering with ip addresses.
Thanks both.
Post by Jorge Silva
Great.
--
I hope that the information above helps you.
Have a Nice day.
Jorge Silva
MCSE, MVP Directory Services
Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.
Loading...