Identifying Printer Drivers
A basic part of network management is working with printer drivers. Examining the printer driver files is fundamental to good management. Many default printer drivers are installed on a Windows Vista system. Adding a printer by using one of these default printer drivers is not difficult. If, however, the driver is not on the system, the process is a bit more challenging.
In the FindPrinterDrivers.ps1 script, use the Get-ChildItem cmdlet to retrieve the .inf files installed on the system that contain the letters prn. Use the env:\ psdrive to retrieve the value of the %systemroot% environmental variable. Use the -exclude parameter to not return files with a .pnf file extension.
In Figure 6-8 there is a view of the inf directory ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access