Windows Server 2008驱动程序安装管理员权限。 [英] Windows Server 2008 driver install admin rights.

查看:328
本文介绍了Windows Server 2008驱动程序安装管理员权限。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows Server 2008上安装我们的打印机驱动程序。我们首先尝试使用WMI安装打印机,如果失败,我们尝试使用rundll32。我已经尝试了CreateProcess和ShellExecuteEx来运行cmd行:rundll32 printui.dll,PrintUIEntry等。当我尝试这个时,我得到"你没有权限修改这台打印机"。在Server 2008中。如果我在admin cmd提示符下运行此cmd行,则安装正常。我们所有的函数调用都会返回而不会出错,但是从不安装打印机。我们在安装后调用OpenPrinter以确保它已安装且永远不会安装。

为什么在调用CreateProcess或ShellExecute时不会继承管理员权限?这是一个驱动程序,我们可以读/写注册表,所以我们有完全访问权限。这只是Windows Server 2008中的一个问题(它适用于Vista和7 RC)。我知道服务器有更多的安全性,所以如何运行带有管理员权限的cmd。

解决方案

你好,

你有没有运行任何Windows更新,因为通常会看到Windows更新尝试更新打印机的驱动程序但无法成功完成,这会导致打印机出现问题。所以在这种情况下驱动程序将被破坏。所以建议删除现有的驱动程序,因为旧驱动程序无法替换。所以尝试重新安装。可能的步骤可能是:


1。点击"开始"按钮按钮,在搜索框中键入PRINTER,然后按Enter键。


2。找到与您的打印机相关的图标,然后将其删除。


3。右键单击窗口的空白部分,然后选择"以管理员身份运行" - >"服务器属性"。


4。在"驱动程序"选项卡上,选择列出的打印机并单击"删除"按钮。请选择删除驱动程序和驱动程序包。


5。打开"开始"菜单,在"搜索"框中输入APPWIZ.CPL,然后按ENTER键启动"程序和功能"。


6。尝试删除所有相关的打印机软件。





的问候,普加

I am I trying to install our printer driver on Windows Server 2008. We first try to use the WMI to install the printer, if this fails we try rundll32. I have tried both CreateProcess and ShellExecuteEx to run a cmd line of: rundll32 printui.dll,PrintUIEntry, ect. When I try this I get "You do not have permission to modify this printer" in Server 2008. If I run this cmd line in a admin cmd prompt it installs fine. All of our function calls return without error, however, the printer is never installed. We call OpenPrinter after the install to make sure it was installed and it never gets installed.

Why are the admin rights not inherited when I call CreateProcess or ShellExecute? This is a driver and we are able to read/write to the registry so we have full access. This is only an issue in Windows Server 2008 (it works in Vista and 7 RC). I know server has much more security so how do I run a cmd with admin priviledges.

解决方案

Hi,

Did you run any Windows Updates because it is usually seen that Windows Updates try to update the drivers for printer but could not successfully completed which causes the issues with printers. So in this case the driver will be corrupted. So the suggestion would be to remove the existing driver as the old driver could not get replaced. So try to install afresh. The possible steps could be:

1. Click the "Start" button, type PRINTER in the search box and press Enter.

2. Find the icons which are related to your printer, and delete them.

3. Right-click on the blank part of the window, and choose "Run as administrator"->"Server Properties".

4. On the Drivers tab, select the listed printer and click the Remove button. Please then select Remove driver and driver package.

5. Open Start menu, input APPWIZ.CPL in the Search box and press ENTER to launch "Programs and Features".

6. Try to remove all related printer software.

 



Regards,
Pooja.


这篇关于Windows Server 2008驱动程序安装管理员权限。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆