?
Solved

Automate Printer install With KIX

Posted on 2010-08-31
3
Medium Priority
?
3,138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
Suggested Courses

752 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