使用c ++或powershell脚本获取所有打印机的权限详细信息 [英] Get permissions details for all printers using c++ or powershell script

查看:231
本文介绍了使用c ++或powershell脚本获取所有打印机的权限详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows Server 2012操作系统中,



I need to get the  permission details of Device and printers-> Printer Server properties-> Security->"Manage server" is checked or not for all printers by using any C++ api or power shell command.

问候,

Vignesh

推荐答案

美好的一天Vignesh,

Good day Vignesh,

使用Powershell,您可以在printmanagement模块中使用Get-Printer cmdlet。具体来说,请查看PermissionsSDDL属性。

With Powershell, you can use the Get-Printer cmdlet in the printmanagement module. Specifically, look at the PermissionsSDDL property.

在C ++中,查看GetNamedSecurityInfo。

In C++, look into GetNamedSecurityInfo.

我希望这会有所帮助。

问候,

Lionel


这篇关于使用c ++或powershell脚本获取所有打印机的权限详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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