Solved

Automate Printer install With KIX

Posted on 2010-08-31
3
3,090 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

What Security Threats Are You Missing?

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

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

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

10 Experts available now in Live!

Get 1:1 Help Now