As Admin with SE_SECURITY_NAME privilege,
use
EnumPrinterDrivers
then
GetFileSecurity
GetSecurityDescriptorOwner
LookupAccountSid
to get the owner of pDriverPath of DRIVER_INFO_n structure
(tested on Windows 10 1909)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Window Printer Driver - for each driver installed is there a way of telling whether it was admin-installed or otherwise?
Could this be reg key, file permissions etc?
Essentially I would like to enumerate a list of the printer drivers installed on a device; where the driver is "user-installed", remove it and re-install with admin rights.
All related to the user requiring Admin rights to connect to point and print shares.
Regards,
K
As Admin with SE_SECURITY_NAME privilege,
use
EnumPrinterDrivers
then
GetFileSecurity
GetSecurityDescriptorOwner
LookupAccountSid
to get the owner of pDriverPath of DRIVER_INFO_n structure
(tested on Windows 10 1909)