Reporting on printer security
When sharing printers, the default configuration is to allow all domain users to print to all printers. Occasionally this is not a desired configuration as there may be special-purpose printers or printers in restricted areas.
To manage this need, we can apply security on the printers themselves to limit which users can perform various functions. We can use permissions to restrict who can print to specific printers, or delegate administrative permissions to certain users.
In this recipe we will report on the printer security on the print server. This will iterate through each printer on the server and return the security attributes assigned to each user.
Getting ready
For this recipe we will be accessing a Server 2012 print server with one or more printers installed and shared.
How to do it...
Perform the following steps to view the printer security:
Create a hash table containing printer permissions:
$pace = DATA { ConvertFrom-StringData -StringData @' 131072 = ReadPermissions...