Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Automate Printer install With KIX

Posted on 2010-08-31
3
Medium Priority
?
3,163 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

610 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