?
Solved

Enumerate and Install Remote Printers from Service ( SYSTEM Account )

Posted on 2006-04-19
3
Medium Priority
?
199 Views
Last Modified: 2010-04-17
My code for Enumerating and Installing Remote Printers is part of a service which runs in the Local SYSTEM Account.
SYSTEM Account does not have sufficient rights to access Network Resources as a result remote printers are not enumerated.
I tried impersonating the Guest Account and was able to enumerate the Remote Printers but when i tried to install the printer AddPrinterConnection failed with errorcode = 2. (The Specified File not found).

How do i resolve this issue ? Is there any other approach other than impersonation ?
0
Comment
Question by:ac506
1 Comment
 

Accepted Solution

by:
smgcinc earned 200 total points
ID: 16490923
The script needs to run under an account which is in the local administrators group on the computer you want to install printers.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Why WooCommerce is one of the majorly favored choices when it comes to having an eCommerce store. This article will acquaint you with some reasons that I believe make it one of the best eCommerce platforms available.
Six Sigma Control Plans
Screencast - Getting to Know the Pipeline

599 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