如何确定打印机安装在哪个服务器上
如果我在 Active Directory 中查找打印机,有什么方法可以确定它安装在哪个服务器上?如果我在 Active Direcory 控制台中查找打印机,属性标题会告诉我服务器,如何以编程方式确定该值?
编辑:语言是C#
If I look up a printer in Active Directory, is there any way to determine the server it is installed on? If I look up the printer in the Active Direcory console, the properties caption tells me the server, how can I determine this value programatically?
Edit: Language is C#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
AD 中 printQueue 对象的
serverName
属性或uncName
属性可能就是您想要的。The
serverName
attribute oruncName
attribute of the printQueue object in AD is likely what you want.为了构建 alexn 提供的链接中的答案,这是我编写的一个程序,它将打印出计算机上每台打印机的服务器信息:
打印机的所有其他属性也可以作为 PropertyData 提供。
To build on the answer in the link alexn provided, here's a program I wrote that will print out the server information for every printer on a computer:
All the other properties of the printer are available as PropertyData as well.
要查找共享打印机,请单击“桌面”,双击“网络”,双击连接打印机的计算机的名称,然后双击要在 Windows SBS 控制台中列出的打印机。
To find a shared printer, click Desktop, double-click Network, double-click the name of the computer to which the printer is attached, and then double-click the printer that you want to list in the Windows SBS Console.