Windows 10 Printer Drivers - for each driver installed is there a way of telling whether it was admin-installed or user-installed?

[Kat_21] 21 Reputation points
2021-09-23T13:21:17.19+00:00

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

Windows for business | Windows Client for IT Pros | Devices and deployment | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2021-09-25T17:06:47.54+00:00

    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)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.