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

[Kat_21] 1 Reputation point
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 Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,552 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,831 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)