Solved

Automate Printer install With KIX

Posted on 2010-08-31
3
3,106 Views
Last Modified: 2012-05-10
I've used KIX scripting as a network administrator for a long time now.  Seems that with the release of Windows 7 and Windows Server 2008/(R2) there have been some challenges with the following command:

$Return=AddPrinterConnection("\\server\printer")

Seems as though KIX used to be able to install the printer driver in the Windows XP x86 environment, and now if the Windows 7/Vista account has only "Domain User" rights, and the printer driver needs to be installed, it will prompt for admin credentials.  This is ok for one or two workstations, but is a real pain if you have to deploy a new printer to an office of 50 + workstations.  Anyone know of a good way around this?  I'd really like to stick with the Kix script as I am familiar, but is there a better way?

One great feature with KIX is that you can deploy based on group membershipt and subnet.  Any other solution offer this functionality?  Thanks fellow admins!!!!!
0
Comment
Question by:tarkmyler
  • 2
3 Comments
 
LVL 11

Expert Comment

by:ProfessorBindokas
ID: 33574019
Is your OS 64 bit?  If so, the problem may be linked to the fact that on 64 bit 7/Vista the drivers\etc directory is excluded from the wow64 File Redirection feature.  Your script may simply not be finding the location and issue may not be directly linked to an admin rights problem.  Pulled out quite a few of my hairs till found the exception to redirects.

There is a thread on the MSDN library, which covers this:  http://msdn.microsoft.com/en-us/library/aa384187(VS.85).aspx

Hope this helps
0
 
LVL 11

Expert Comment

by:ProfessorBindokas
ID: 33752782
Hi, were you able to solve the problem?  Is there any additional information you need?
0
 

Accepted Solution

by:
tarkmyler earned 0 total points
ID: 33855883
I did find the fix to my issue.  It ended up being a GPO setting:

Computer Configuration > Policies > Administrative Templates > Printers > Point and print restrictions

Make sure you have a 2008 R2 DC...  Not sure if just a 2008 DC would do it.  Thanks.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

777 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